Get Started
Quickstart
Create a key in the API Console, send a generation request, then get the result with the job ID.
1. Create a Key
Create a key in the API Keys menu of the API Console and save it in the server environment variable DROPSHOT_API_KEY.
Anyone with your key can use your credits. Keep it on your server only, and never put it in browser or app code.
Go to API Console2. Send a generation request
Copy the ID of the model you want from Explore models and paste it in place of MODEL_ID.
curl -X POST https://openapi.aistudio.dropshot.io/v1/generations \
-H "Authorization: Bearer $DROPSHOT_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "MODEL_ID",
"input": {
"prompt": "A red fox running through snow"
},
"webhook_url": "https://example.com/webhooks/dropshot"
}'When you resend after a network error, use the same Idempotency-Key. With the same key and the same body, the job is created once and charged once.
3. Wait for completion
Check the status every 5 seconds for images and audio, and every 15 seconds for videos. How long it takes depends on the model. If you set a webhook URL, you'll be notified when the job completes or fails.
curl https://openapi.aistudio.dropshot.io/v1/generations/$JOB_ID \
-H "Authorization: Bearer $DROPSHOT_API_KEY"
# status: queued | processing | completed | failed | canceled4. Get the Result
Once it's done, download the file from the URL in output. If a job fails or is canceled, the credits deducted are refunded automatically.
{
"id": "api_8f14e45fceea167a5a36dedd4bea2543",
"status": "completed",
"model": "MODEL_ID",
"credit_cost": 150.03,
"is_refunded": false,
"created_at": "2026-11-17T09:00:00.123Z",
"completed_at": "2026-11-17T09:01:12.345Z",
"output_expires_at": "2026-11-18T09:01:12.345Z",
"is_output_expired": false,
"error": null,
"output": [
{
"type": "video",
"url": "https://...",
"poster_url": "https://...",
"width": 1280,
"height": 720,
"duration": 5.04,
"text": null
}
]
}Responses include output for 24 hours after completion, and the result URLs you receive stay open for at least 24 hours. Results aren't saved to your web assets, so download anything you want to keep.