🔗 Try Oaktis → https://oaktis.com
Official Docker image for Oaktis command-line tools.
docker pull oaktis/cli:latest
# Generate a video
docker run -e OAKTIS_API_KEY=your-api-key oaktis/cli video "a cat surfing"
# Generate an image
docker run -e OAKTIS_API_KEY=your-api-key oaktis/cli image "a futuristic city"
docker run -e OAKTIS_API_KEY=your-api-key oaktis/cli video "a mountain landscape" --duration 10
# Create .env file
echo "OAKTIS_API_KEY=your-api-key" > .env
# Run with env file
docker run --env-file .env oaktis/cli video "a cat surfing"
# Run in interactive mode
docker run -it -e OAKTIS_API_KEY=your-api-key oaktis/cli
# Or with shell
docker run -it --entrypoint /bin/sh oaktis/cli
All CLI commands are available in the Docker image:
# Video generation
docker run -e OAKTIS_API_KEY=xxx oaktis/cli video "prompt" [options]
# Image generation
docker run -e OAKTIS_API_KEY=xxx oaktis/cli image "prompt" [options]
# Check status
docker run -e OAKTIS_API_KEY=xxx oaktis/cli status <jobId> --type video
# Get result
docker run -e OAKTIS_API_KEY=xxx oaktis/cli get <jobId> --type video
# Show help
docker run oaktis/cli --help
docker run -e OAKTIS_API_KEY=your-api-key \
oaktis/cli video "a cat surfing at sunset" \
--duration 10 \
--resolution 1080p
docker run -e OAKTIS_API_KEY=your-api-key \
oaktis/cli image "abstract art" \
--size 1024x1024 \
--number 3
docker run -e OAKTIS_API_KEY=your-api-key \
oaktis/cli video "a mountain landscape" \
--no-wait
Create a docker-compose.yml:
version: '3.8'
services:
oaktis:
image: oaktis/cli:latest
environment:
- OAKTIS_API_KEY=${OAKTIS_API_KEY}
command: video "a cat surfing"
Run with:
OAKTIS_API_KEY=your-api-key docker-compose up
- name: Generate video with Oaktis
run: |
docker run -e OAKTIS_API_KEY=${{ secrets.OAKTIS_API_KEY }} \
oaktis/cli video "automated video generation" --no-wait
generate_video:
image: docker:latest
services:
- docker:dind
script:
- docker pull oaktis/cli:latest
- docker run -e OAKTIS_API_KEY=$OAKTIS_API_KEY oaktis/cli video "test video"
# Clone the repository
git clone https://github.com/Oaktis/Oaktis
cd oaktis-sdk
# Build the image
docker build -t oaktis/cli:latest -f docker/oaktis-cli/Dockerfile .
# Test the image
docker run oaktis/cli:latest --version
docker buildx create --use
docker buildx build \
--platform linux/amd64,linux/arm64 \
-t oaktis/cli:latest \
-f docker/oaktis-cli/Dockerfile \
--push .
latest - Latest stable release0.1.0, 0.2.0, etc. - Specific version tagsmain - Latest commit from main branch (unstable)node:20-alpineoaktis CLInode (non-root)OAKTIS_API_KEY (required) - Your Oaktis API keyOAKTIS_BASE_URL (optional) - Custom API base URLNODE_ENV - Set to production by defaultYou can mount volumes to save outputs or load configuration:
docker run \
-e OAKTIS_API_KEY=your-api-key \
-v $(pwd)/config:/app/config \
-v $(pwd)/output:/app/output \
oaktis/cli video "a cat surfing"
This image runs as a non-root user (node) for better security. The API key is passed via environment variables and not baked into the image.
# Run with specific user
docker run --user $(id -u):$(id -g) \
-e OAKTIS_API_KEY=your-api-key \
oaktis/cli video "test"
# Use host network
docker run --network host \
-e OAKTIS_API_KEY=your-api-key \
oaktis/cli video "test"
# Run with shell to debug
docker run -it --entrypoint /bin/sh \
-e OAKTIS_API_KEY=your-api-key \
oaktis/cli
MIT © Oaktis
Need an API key? Get started at oaktis.com
Content type
Image
Digest
sha256:755f80740…
Size
50.9 MB
Last updated
12 months ago
docker pull ververv2/cli