# Video Prompt Generator API

> Kavramlardan, kamera, tempo ve efekt seçenekleriyle video oluşturma istemleri yazar

Bir `input_concept` alır ve seçilen `style`, `camera_style`, `camera_direction`, `pacing` ve `special_effects` değerlerini kullanarak istem oluşturur. Dahil etmek üzere `custom_elements` veya bir `image_url` ekleyebilir, dil modelini seçebilir ve `prompt_length` değerini Short, Medium veya Long olarak ayarlayabilirsiniz. İstemi metin olarak döndürür.

- Model id: `video-prompt-generator`
- Made by: Utility
- Category: LLM
- Output: json
- Price: from $0.001 / request (cheapest run $0.001 (1 API credit))
- Run: `POST https://api.doitong.ru/v1/run/video-prompt-generator`
- Quote: `POST https://api.doitong.ru/v1/quote/video-prompt-generator`
- Docs page: https://doitong.com/tr/developers/models/video-prompt-generator

## Pricing

Price: **from $0.001 / request** (the lowest tier; the quote prices your exact input). Billed once per request.

Price rules (the first rule that matches the input wins; a parameter you leave out counts as its default):

- When `image_url` is set: $0.011 (11 API credits) / request

The full example input below costs $0.001 = 1 API credit (1 request × 1 API credits).

Prices are the upstream price in USD, paid from the API balance in API credits (1000 API credits = 1 USD). `POST https://api.doitong.ru/v1/quote/video-prompt-generator` with the same JSON body returns the exact price for that input; the quote is exactly what a run charges. Invalid input is never charged and failed or canceled requests are refunded automatically.

## Input parameters

Send either the canonical name or the native field name (not both). Canonical names are the same across models.

| Parameter | Canonical name | Type | Required | Default | Allowed values / range | Description |
|---|---|---|---|---|---|---|
| `input_concept` |  | string | yes |  |  | Video istemini oluşturmak için kullanılan ana fikir veya tema. |
| `style` |  | enum (string) | no | `Simple` | `Minimalist`, `Simple`, `Detailed`, `Descriptive`, `Dynamic`, `Cinematic`, `Documentary`, `Animation`, `Action`, `Experimental` | Video istemine uygulanan stil. |
| `camera_style` |  | enum (string) | no | `None` | `None`, `Steadicam flow`, `Drone aerials`, `Handheld urgency`, `Crane elegance`, `Dolly precision`, `VR 360`, `Multi-angle rig`, `Static tripod`, `Gimbal smoothness`, `Slider motion`, `Jib sweep`, `POV immersion`, `Time-slice array`, `Macro extreme`, `Tilt-shift miniature`, `Snorricam character`, `Whip pan dynamics`, `Dutch angle tension`, `Underwater housing`, `Periscope lens` | Kamera hareketinin stili. |
| `camera_direction` |  | enum (string) | no | `None` | `None`, `Zoom in`, `Zoom out`, `Pan left`, `Pan right`, `Tilt up`, `Tilt down`, `Orbital rotation`, `Push in`, `Pull out`, `Track forward`, `Track backward`, `Spiral in`, `Spiral out`, `Arc movement`, `Diagonal traverse`, `Vertical rise`, `Vertical descent` | Kamera hareketinin yönü. |
| `pacing` |  | enum (string) | no | `None` | `None`, `Slow burn`, `Rhythmic pulse`, `Frantic energy`, `Ebb and flow`, `Hypnotic drift`, `Time-lapse rush`, `Stop-motion staccato`, `Gradual build`, `Quick cut rhythm`, `Long take meditation`, `Jump cut energy`, `Match cut flow`, `Cross-dissolve dreamscape`, `Parallel action`, `Slow motion impact`, `Ramping dynamics`, `Montage tempo`, `Continuous flow`, `Episodic breaks` | Ritmin temposu. |
| `special_effects` |  | enum (string) | no | `None` | `None`, `Practical effects`, `CGI enhancement`, `Analog glitches`, `Light painting`, `Projection mapping`, `Nanosecond exposures`, `Double exposure`, `Smoke diffusion`, `Lens flare artistry`, `Particle systems`, `Holographic overlay`, `Chromatic aberration`, `Digital distortion`, `Wire removal`, `Motion capture`, `Miniature integration`, `Weather simulation`, `Color grading`, `Mixed media composite`, `Neural style transfer` | Özel efektler için kullanılan yaklaşım. |
| `custom_elements` |  | string | no | `` |  | İsteğe bağlı özel teknik ayrıntılar. |
| `image_url` | `image` | string (image URL) | no |  |  | URL ile sağlanan isteğe bağlı görsel; analiz edilen içeriği video isteminin parçası olur. |
| `model` |  | enum (string) | no | `google/gemini-2.5-flash-lite` | `anthropic/claude-3-haiku`, `google/gemini-2.5-flash`, `google/gemini-2.5-flash-lite`, `meta-llama/llama-3.1-8b-instruct`, `meta-llama/llama-3.1-70b-instruct`, `openai/gpt-4o-mini`, `openai/gpt-4o` | Kullanılacak model. |
| `prompt_length` |  | enum (string) | no | `Medium` | `Short`, `Medium`, `Long` | İstenen istem uzunluğu. |

File parameters (`image`) take a public `https://` URL, a `data:` URI up to 10 MB, or the `file_url` of an upload from `POST /files`.

## Example input

Required parameters only:

```json
{
  "input_concept": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}
```

A fuller example:

```json
{
  "input_concept": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
}
```

## Run it

Set `DOITONG_API_KEY` to a key from https://doitong.com/developers/dashboard#keys. `?wait=20` returns the finished request in the same call when it is ready within 20 seconds; otherwise poll `GET /requests/{id}` (it also accepts `?wait=`), or pass `webhook_url`.

### curl

```bash
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/video-prompt-generator?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input_concept": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"
```

### JavaScript

```javascript
const API = "https://api.doitong.ru/v1";
const headers = {
  "Authorization": "Bearer " + process.env.DOITONG_API_KEY,
  "Content-Type": "application/json",
};

// Run the model; wait up to 20 s for the finished result in the same call
let res = await fetch(API + "/run/video-prompt-generator?wait=20", {
  method: "POST",
  headers,
  body: JSON.stringify({
    "input_concept": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  }),
});
let request = await res.json();
if (!res.ok) throw new Error(request.error.code + ": " + request.error.message);

// Not finished yet: long-poll until it is
while (request.status === "queued" || request.status === "running") {
  res = await fetch(API + "/requests/" + request.id + "?wait=20", { headers });
  request = await res.json();
}
if (request.status !== "succeeded") throw new Error(JSON.stringify(request.error));
console.log(request.outputs.map((o) => o.url), request.cost.credits + " API credits ($" + request.cost.usd + ")");
```

### Python

```python
import os
import requests

API = "https://api.doitong.ru/v1"
headers = {"Authorization": "Bearer " + os.environ["DOITONG_API_KEY"]}

payload = {
    "input_concept": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
}

# Run the model; wait up to 20 s for the finished result in the same call
r = requests.post(API + "/run/video-prompt-generator", params={"wait": 20}, json=payload, headers=headers)
request = r.json()
if not r.ok:
    raise RuntimeError(request["error"]["code"] + ": " + request["error"]["message"])

# Not finished yet: long-poll until it is
while request["status"] in ("queued", "running"):
    request = requests.get(API + "/requests/" + request["id"], params={"wait": 20}, headers=headers).json()
if request["status"] != "succeeded":
    raise RuntimeError(request["error"])
print([o["url"] for o in request["outputs"]], request["cost"]["credits"], "API credits", "$" + request["cost"]["usd"])
```

### MCP

The MCP server at `https://api.doitong.ru/v1/mcp` exposes the tools `search_models`, `get_model`, `quote`, `run`, `get_request`, `cancel_request`, `list_requests`, `create_upload` and `get_account`. A `run` call for this model:

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "run",
    "arguments": {
      "model_id": "video-prompt-generator",
      "input": {
        "input_concept": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
      },
      "wait_seconds": 20
    }
  }
}
```

## Response

Every call returns a request object. `status` is one of `queued`, `running`, `succeeded`, `failed`, `canceled`. `outputs` lists the generated files with URLs on our storage (kept forever, or 7 days with `?storage=temporary`; `storage` says which); `output` is the model's own result object with the same URLs.

```json
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "video-prompt-generator",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 1,
    "usd": "0.001",
    "charged": 1,
    "refunded": 0
  },
  "input": {
    "input_concept": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field"
  },
  "output": {
    "prompt": "A futuristic city glows softly at dusk, captured with smooth gimbal movements and a slow burn pacing, enhanced by subtle holographic overlays."
  },
  "outputs": [
    {
      "type": "file",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.jpeg",
      "content_type": "image/jpeg",
      "file_size": 1843200,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
```

### Output fields (`output`)

| Field | Type | Description |
|---|---|---|
| `prompt` | string | Model tarafından üretilen video istemi. |

## Related models

- [Bytedance Seed V2 Mini](https://doitong.com/developers/models/bytedance/seed/v2/mini.md) (`bytedance/seed/v2/mini`): $0.0001 / 1000 tokens
- [Fibo Edit \[Structured Instruction\]](https://doitong.com/developers/models/bria/fibo-edit/edit/structured_instruction.md) (`bria/fibo-edit/edit/structured_instruction`): $0.01 / request
- [Fibo Lite · Structured Prompt](https://doitong.com/developers/models/bria/fibo-lite/generate/structured_prompt.md) (`bria/fibo-lite/generate/structured_prompt`): $0.008 / request
- [Fibo · Structured Prompt](https://doitong.com/developers/models/bria/fibo/generate/structured_prompt.md) (`bria/fibo/generate/structured_prompt`): $0.01 / request
- [Mureka 9.5 Lyrics Generation](https://doitong.com/developers/models/mureka/api/generate/lyrics.md) (`mureka/api/generate/lyrics`): $0.0135 / request
- [Nemotron 3 Nano Omni](https://doitong.com/developers/models/nvidia/nemotron-3-nano-omni.md) (`nvidia/nemotron-3-nano-omni`): $0.01 / run
- [NVIDIA Nemotron 3.5 Super Text](https://doitong.com/developers/models/nvidia/nemotron-3-5-super/text.md) (`nvidia/nemotron-3-5-super/text`): $0.01 / run
- [OpenRouter](https://doitong.com/developers/models/openrouter/router.md) (`openrouter/router`): $0.01 / usage unit

## Links

- HTML page: https://doitong.com/developers/models/video-prompt-generator
- All models and guides for AI agents: https://doitong.com/developers/llms.txt
- OpenAPI 3.1 with this model's typed request body: https://doitong.com/developers/openapi.json?model=video-prompt-generator
- Errors: https://doitong.com/developers/docs/errors
- Model details as JSON: https://api.doitong.ru/v1/models/video-prompt-generator
