> ## Documentation Index
> Fetch the complete documentation index at: https://docs.perchanceai.art/agent-docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Omni Flash API Documentation

> PerchanceAI video generation model.

POST https://api.perchanceai.art/api/v1/developer/generations

## Model

- `model_key`: `omni-1.1-flash`
- `modality`: `video`
- `operation`: `video_generation`
- price: 10 credits per second

## Authorizations

| Name | Type | In | Required | Description |
| --- | --- | --- | --- | --- |
| `Authorization` | string | header | required | Formal account API Key or OAuth token, for example `Bearer pca_live_...` |
| `Idempotency-Key` | string | header | required | Unique key for the generation request |
| `X-App-Id` | string | header | optional | Fixed to `perchanceai` for this deployment |

## Body

`application/json`

| Field | Type | Required |
| --- | --- | --- |
| `negative_prompt` | string | optional |
| `prompt` | string | optional |
| `reference_upload_ids` | array | optional |

## Parameters

| Name | Accepted values |
| --- | --- |
| `video_input_limits` | [object Object] |
| `reference_image_count` | 6 |
| `max_prompt_chars` | 8000 |
| `supports_multi_reference` | true |
| `max_reference_uploads` | 8 |
| `supports_first_frame` | true |
| `resolution_names` | 360p, 720p |
| `resolutions` | 360p, 720p |
| `supports_reference` | true |
| `video_modes` | i2v, r2v, t2v |
| `duration_seconds` | 4, 6, 8, 10 |
| `aspect_ratios` | 16:9, 9:16 |

## Example request

```bash
curl --request POST \
  --url https://api.perchanceai.art/api/v1/developer/generations \
  --header 'Authorization: Bearer <pca_live_key>' \
  --header 'X-App-Id: perchanceai' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <uuid>' \
  --data '{"model_key":"omni-1.1-flash","operation":"video_generation","prompt":"your prompt"}'
```

## Responses

- `202` — accepted; durable generation identifier returned, not task completion.
- `401` `DEVELOPER_TOKEN_REQUIRED` — the bearer token is missing.
- `401` `DEVELOPER_TOKEN_INVALID` — the bearer token is invalid, including historical anonymous credentials.
- `422` `FIELD_INVALID` / `FIELD_REQUIRED` — the payload does not match the model schema.
- `429` `RATE_LIMITED` — too many requests.
