> ## Documentation Index
> Fetch the complete documentation index at: https://developers.apob.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat image and video settings

> Select the quality, output resolution and image count for a quoted Chat task.

Send settings in the `parameterPatch` of `sendChatMessage` or `answerChatRun`. A form selection takes precedence over conflicting text in the same turn. Read the current workflow schema for the choices available with your selected assets.

## Answering a creative preference

During `WAITING_INPUT`, an assistant message can contain a `QUESTION` block for one creative preference. Its `data` contains `runId`, `interruptId`, `baseVersion` and `question`. The message text carries the localized question prompt. Read the allowed choices and selection limits from `question` and submit the option IDs with `answerChatRun`. Use the identifiers from that question's message and a fresh `clientRequestId` for each answer.

Clients that render preference questions as standalone messages can request `data(standaloneQuestions: true)` on both reads. The assistant's preference message carries its text and the current `QUESTION` block. Render the question once and submit its answer before showing the next question or the quoted setup.

```graphql theme={"system"}
query ChatPreferences($sessionId: ID!, $afterSeq: String) {
  chatSession(sessionId: $sessionId) {
    messages { id role text data(standaloneQuestions: true) }
  }
  chatEvents(sessionId: $sessionId, afterSeq: $afterSeq) {
    events { seq type data(standaloneQuestions: true) }
    nextSeq
  }
}
```

For a `MESSAGE` event, the blocks are in `event.data.data`. Omitting the argument or setting it to `false` includes the companion `DRAFT.data.draft.questions` for older clients. Historical messages that contain only a `DRAFT` and quoted setup cards keep their original block format. A run snapshot can restore the current question if its message is outside the loaded page. Use the snapshot as a fallback for that same question. Asking for the current settings keeps its interrupt and version valid.

```json theme={"system"}
{
  "runId": "<runId>",
  "interruptId": "<interruptId>",
  "baseVersion": 3,
  "clientRequestId": "<unique request ID>",
  "questionAnswers": [
    { "questionId": "<questionId>", "selectedOptionIds": ["face", "outfit"] }
  ]
}
```

On a text turn, omitting `questionAnswers` or sending `questionAnswers: []` leaves the preference open. To answer the video consistency question (`preserve`) with no preference, send its `questionId` with `selectedOptionIds: []`.

Chat asks for missing required inputs and checks any previously reported validation errors before showing a queued preference. For example, if the video duration is invalid, editing the description keeps the duration error visible until you correct it. Once the inputs are valid, each remaining question gets its own message. After the last answer, Chat returns the quoted draft for explicit generation confirmation.

## Image settings

The same quality and resolution values apply to `create_image`, `edit_image` and `clone_image`. Resolution selects the long edge in pixels. Width and height select the aspect ratio.

| Quality | Resolution | Generate count |
| - | - | - |
| Fast (`ultraFast`) | `1k`, `2k` | 2, 4 |
| Ultra (`ultra`) | `1k`, `2k`, `4k` | 1, 2, 4 |
| UltraS (`ultraS`) | `1k`, `2k`, `4k` | 1, 2, 4 |

New image drafts default to Ultra 2K for free accounts and UltraS 2K for paid accounts. Generation defaults to two images. Edit and clone produce one image each and preserve the source aspect ratio by default.

This fragment requests two Fast images with a 2048-pixel long edge.

```json theme={"system"}
{
  "workflowId": "create_image",
  "parameterPatch": { "quality": "ultraFast", "resolution": "2k", "numSamples": 2 }
}
```

To change just the size on the next turn, send `{"resolution":"1k"}` in the patch. An explicitly unsupported request, such as Fast at 4K or Fast with one image, returns a field to correct. Each operation has its own per-image price. Review the updated quote and confirm the plan version and quote ID before submission.

## UltraS Fast video

Use `quality=ultraSFast` for these workflows. Video resolution uses the following wire values.

| Workflow | Supported resolutions |
| - | - |
| `create_text_to_video`, `create_image_to_video` | `SD`, `HD`, `FHD`, `QHD`, `UHD` |
| `extend_video`, `clone_video` | `SD`, `HD`, `FHD` |
| `edit_video_content` | `SD`, `HD`, `FHD`, `QHD` |

Legacy inbound workflow ID aliases (`generate_image`, `text_to_video`, `image_to_video`, `edit_everything`, and `generate_audio`) remain accepted and normalize to their canonical IDs. For a 2K video, send `resolution=QHD`. Duration and source media also affect the available settings and final quote. Clone Video and ReEverything inherit the source duration.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.