---
agent:
  instructions: "Search the site by keyword or question. The search API returns Markdown."
  endpoint: "https://platform.invideo.io/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
---

# API reference

> Requests and responses for the invideo Platform API.

Base URL: `https://platform-api.invideo.io/v1`. Bodies are JSON. Every endpoint but the catalogue needs `Authorization: Bearer <API key>` ([Authentication](/docs/authentication)).

| Method | Path | What it does |
| --- | --- | --- |
| `GET` | `/catalog` | Every public model with its list prices. No key. |
| `GET` | `/catalog/{model}` | One public model with its input schema. No key. |
| `GET` | `/models` | The models your workspace may call, with your prices. |
| `GET` | `/models/{model}` | One model: input schema, output shape and your prices. |
| `POST` | `/request` | Starts a run. Answers at once with its `id`. |
| `GET` | `/request/{id}` | A run: status, output files, error, cost. |
| `GET` | `/request/{id}/logs/request` | What was sent to the model, as JSON. |
| `GET` | `/request/{id}/logs/response` | What the model answered, as JSON. |

## POST /request

```json
{
  "model": "veo-3",
  "mode": "generate",
  "input": { "prompt": "a paper boat on a rainy street", "duration": 5 }
}
```

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `model` | string | yes | The model id, from `/catalog` or `/models`. |
| `mode` | string | yes | One of the model's `modes`. |
| `input` | object | yes | The model's inputs, as its `input_schema` says. |

Headers: `Idempotency-Key` (optional, 1 to 255 characters): a retry with the same key answers with the first request and never starts a second run.

Answer `200`:

```json
{ "id": "0f8b6c1e-...", "status": "queued" }
```

## GET /request/{id}

```json
{
  "id": "0f8b6c1e-...",
  "model": "veo-3",
  "mode": "generate",
  "status": "succeeded",
  "created_at": "2026-01-01T10:00:00Z",
  "started_at": "2026-01-01T10:00:02Z",
  "finished_at": "2026-01-01T10:01:00Z",
  "output": {
    "kind": "video",
    "files": [
      {
        "url": "https://...",
        "content_type": "video/mp4",
        "size_bytes": 1048576,
        "width": 1280,
        "height": 720,
        "duration": 5.0
      }
    ]
  },
  "error": null,
  "cost_usd": "0.50"
}
```

`status`: `preparing`, `queued`, `running`, then `succeeded` or `failed` (a request that did not start within 15 minutes fails with `queue_timeout`). `output` and `cost_usd` are `null` until the run succeeds. File links are signed again on every read and work for one hour. A failed run still answers `200`; `error` is `{type, code, message, retryable}` with `type` one of `content`, `model`, `input`, `server`. See [Requests](/docs/requests).

## GET /models and /catalog

```json
{
  "models": [
    {
      "id": "nano-banana-2-1",
      "name": "Nano Banana 2.1",
      "provider": "Black Forest Labs",
      "modality": "image",
      "modes": ["generate"],
      "units": ["image"],
      "prices": [{ "mode": "generate", "unit": "image", "conditions": {}, "usd": "0.07", "price_kind": null, "typical_usd": null }]
    }
  ]
}
```

Each model also has `price_summary`, its resolution and duration bounds and `tiers` with the billed unit and price for each combination of mode and conditions. Use `tiers` for exact unit rates. The legacy `min_usd` and `max_usd` fields summarize estimated totals across those bounds. With your key these are your workspace's prices, the ones you are charged.

`provider` is the company that made the model. A price with `conditions` applies to those input values only (for example `{"resolution": "1080p"}`). `price_kind: "dynamic"` means the customer rate depends on the run. `typical_usd` is the typical customer rate per unit.

`GET /models/{model}` and `GET /catalog/{model}` add `input_schema` (a JSON Schema of `input`, per mode), `inputs` (the same as a list of fields with labels and limits) and `output` (the shape of `output.files`).

## Logs

`GET /request/{id}/logs/request` and `/logs/response` answer the stored request and response as JSON, with files as fresh one-hour links. A key reads only its own workspace's requests. Logs are kept 90 days; older ones answer `410 log_expired`.

## Errors

See [Errors](/docs/errors) for every code.
