Get Started
Overview
Call AI Studio's image, video, and voice models through the API to generate results.
At a Glance
| Item | Details |
|---|---|
https://openapi.aistudio.dropshot.io/v1 | Base URL |
Authorization: Bearer ds_live_... | Keep the key you created in the API console on your server only, and use it from there. |
JSON · snake_case | Request and response body format |
credit_cost | Credits are deducted at the model's list price, with no subscription discounts or unlimited mode. |
Request list
| Requests | Description |
|---|---|
POST /generations | Sends a generation request. Returns a job ID. |
GET /generations/{id} | Check job status and results |
GET /generations | List jobs |
POST /generations/{id}/cancel | Cancel a waiting job |
GET /models | Model list and prices |
GET /models/{model} | Input options for a single model |
GET /balance | Credits remaining |
First Request
When you send a generation request, you immediately get a job ID back. You get the result separately with that 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"
}'{
"id": "api_8f14e45fceea167a5a36dedd4bea2543",
"status": "queued",
"model": "MODEL_ID",
"credit_cost": 150.03,
"created_at": "2026-11-17T09:00:00.123Z"
}Request Flow
- Send: Send a generation request with the model ID and input, and get a job ID.
- Wait: check the status with the job ID, or get a completion or failure notification via webhook.
- Receive: when the job completes, download the file from the result URL in output. Responses include output for 24 hours after completion, and the URLs you receive stay open for at least 24 hours.