Text-to-image and text-to-video on AWS Trainium.
Each model runs one request at a time; others wait in its queue (HTTP 429 when the queue is full or times out). Estimated times were measured on this server with one model busy at a time; the wait counts the requests ahead at their model's default steps. A request must use one of its model's shapes: H×W for images, H×W×F (frames) for videos.
| Model | Kind | Device | Shapes | Est. time | Status |
|---|---|---|---|---|---|
black-forest-labs/FLUX.1-dev | image | 0 | 1024×1024 | ~8 s (28 steps) | ready |
Qwen/Qwen-Image | image | 1 | 1024×1024 | ~18 s (50 steps) | ready |
Wan-AI/Wan2.1-T2V-14B-Diffusers | video | 2 | 480×832×81 | ~6.8 min (40 steps) | ready |
hunyuanvideo-community/HunyuanVideo | video | 3 | 320×512×61 | ~48 s (50 steps) | ready |
Lightricks/LTX-2 | video | 4 | 512×768×121 | ~82 s (40 steps) | ready |
MiniMaxAI/MiniMax-H3 | video | 5 | 256×448×124 | ~32 s (30 steps) | ready |
Each uses the model's first shape. Send the gateway's API key as a Bearer token when it has one; the header is ignored when it has none. JSON: /v1/models, /ready, /health.
black-forest-labs/FLUX.1-devcurl -sS -X POST https://difflet.yottalabs.ai/v1/chat/completions \
-H "Authorization: Bearer $DIFFLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "black-forest-labs/FLUX.1-dev",
"messages": [{"role": "user", "content": "a small red sailboat on a calm blue lake"}],
"extra_body": {"height": 1024, "width": 1024, "seed": 42}}' \
| jq -r '.choices[0].message.content[0].image_url.url' | cut -d, -f2- | base64 -d > image.png
Qwen/Qwen-Imagecurl -sS -X POST https://difflet.yottalabs.ai/v1/chat/completions \
-H "Authorization: Bearer $DIFFLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "Qwen/Qwen-Image",
"messages": [{"role": "user", "content": "a small red sailboat on a calm blue lake"}],
"extra_body": {"height": 1024, "width": 1024, "seed": 42}}' \
| jq -r '.choices[0].message.content[0].image_url.url' | cut -d, -f2- | base64 -d > image.png
Wan-AI/Wan2.1-T2V-14B-Diffusersvideo_id=$(curl -sS -X POST https://difflet.yottalabs.ai/v1/videos \
-H "Authorization: Bearer $DIFFLET_API_KEY" \
-F 'model=Wan-AI/Wan2.1-T2V-14B-Diffusers' \
-F 'prompt=a cinematic mountain landscape at sunrise' \
-F 'size=832x480' -F 'num_frames=81' | jq -r .id)
# repeat until the status is "completed"
curl -sS -H "Authorization: Bearer $DIFFLET_API_KEY" "https://difflet.yottalabs.ai/v1/videos/$video_id" | jq .status
curl -fL -H "Authorization: Bearer $DIFFLET_API_KEY" "https://difflet.yottalabs.ai/v1/videos/$video_id/content" -o video.mp4
hunyuanvideo-community/HunyuanVideovideo_id=$(curl -sS -X POST https://difflet.yottalabs.ai/v1/videos \
-H "Authorization: Bearer $DIFFLET_API_KEY" \
-F 'model=hunyuanvideo-community/HunyuanVideo' \
-F 'prompt=a cinematic mountain landscape at sunrise' \
-F 'size=512x320' -F 'num_frames=61' | jq -r .id)
# repeat until the status is "completed"
curl -sS -H "Authorization: Bearer $DIFFLET_API_KEY" "https://difflet.yottalabs.ai/v1/videos/$video_id" | jq .status
curl -fL -H "Authorization: Bearer $DIFFLET_API_KEY" "https://difflet.yottalabs.ai/v1/videos/$video_id/content" -o video.mp4
Lightricks/LTX-2video_id=$(curl -sS -X POST https://difflet.yottalabs.ai/v1/videos \
-H "Authorization: Bearer $DIFFLET_API_KEY" \
-F 'model=Lightricks/LTX-2' \
-F 'prompt=a cinematic mountain landscape at sunrise' \
-F 'size=768x512' -F 'num_frames=121' | jq -r .id)
# repeat until the status is "completed"
curl -sS -H "Authorization: Bearer $DIFFLET_API_KEY" "https://difflet.yottalabs.ai/v1/videos/$video_id" | jq .status
curl -fL -H "Authorization: Bearer $DIFFLET_API_KEY" "https://difflet.yottalabs.ai/v1/videos/$video_id/content" -o video.mp4
MiniMaxAI/MiniMax-H3video_id=$(curl -sS -X POST https://difflet.yottalabs.ai/v1/videos \
-H "Authorization: Bearer $DIFFLET_API_KEY" \
-F 'model=MiniMaxAI/MiniMax-H3' \
-F 'prompt=a cinematic mountain landscape at sunrise' \
-F 'size=448x256' -F 'num_frames=124' | jq -r .id)
# repeat until the status is "completed"
curl -sS -H "Authorization: Bearer $DIFFLET_API_KEY" "https://difflet.yottalabs.ai/v1/videos/$video_id" | jq .status
curl -fL -H "Authorization: Bearer $DIFFLET_API_KEY" "https://difflet.yottalabs.ai/v1/videos/$video_id/content" -o video.mp4