# Native generation formats

Source: https://docs.sociaro.com/generations-api/native/

Use this reference when an integration requires a provider’s native request or response shape. Find the HTTP operations in the [API reference](https://docs.sociaro.com/api-reference/index.md) and the parameters for a particular model in the [catalogue](https://docs.sociaro.com/models/index.md).

## BytePlus and ModelArk tasks

| Setting | Value |
| --- | --- |
| Base URL | `https://api.sociaro.com/v1/byteplus` or `https://api.sociaro.com/v1/modelark` |
| Authentication | `Authorization: Bearer <your-api-key>` |
| Create / list | `POST /contents/generations/tasks` or `GET /contents/generations/tasks`, relative to the chosen base |
| Poll / cancel | `GET /contents/generations/tasks/{id}` or `DELETE /contents/generations/tasks/{id}` on the original base |

Submit a supported model ID and its native `content` array. The gateway sets task priority, removes `callback_url` and pseudonymizes `safety_identifier` per organisation. Poll using the ID from the response. Cancel a queued task with `DELETE`. If the task is already cancelled, including on a retry, the gateway returns `200` with `{"id": "<task-id>", "status": "cancelled"}`. A running task or a task in another terminal state returns `409`.

The list returns tasks for the calling key, newest first. Set `page_num` and `page_size` for pagination. Poll a task by ID for its status.

### Prepared reference files

The ModelArk base accepts reference files in the supported media roles. Submit returns a queued task ID. File preparation and provider failures can then appear on poll. Read `status` and `error.code` before fetching outputs. The [reference media guide](https://docs.sociaro.com/reference-images/index.md) covers permissions, parts and limits. [Seedance 2.5](https://docs.sociaro.com/models/bytedance-seedance-2-5/index.md) is a model-specific request example.

### Image responses

BytePlus provides synchronous and asynchronous image routes. The model page lists the supported operation. Check `data[]` for native results and the returned media links for delivery. Features such as transparency and layer decomposition are model-specific. See the [Seedream 5 Pro](https://docs.sociaro.com/models/bytedance-seedream-5-pro/index.md) and [Seedream 5.5](https://docs.sociaro.com/models/bytedance-seedream-5-5/index.md) examples.

## Kling elements and voices

Create reusable elements from images or a voice from a recording. Use the [elements and voices endpoints](https://docs.sociaro.com/api-reference/#kling-elements-and-voices) to create, poll or list resources and presets.

| Resource | Create fields | Result |
| --- | --- | --- |
| Element | `element_name`, `element_description`, `reference_type: "image_refer"`, `element_image_list`. Supply a frontal image and one to three further reference images. | An `element_id` in `task_result` after `task_status` reaches `succeed`. |
| Voice | `voice_name` and `voice_url`. Supply one clean voice in a publicly reachable recording of 5–30 seconds. | A `voice_id` in `task_result` after `succeed`. |

Use the returned `task_id` to poll. Custom resources belong to the organisation, and the presets endpoint lists provider presets. To remove a custom element or voice, contact support. For an example using those resource IDs, see [Kling 4.0 Omni](https://docs.sociaro.com/models/kling-kling-4-0-omni/index.md).

## Model-specific examples

| Task | Example |
| --- | --- |
| Image generation or editing | [Wan 2.7 Image](https://docs.sociaro.com/models/alibaba-wan-2-7-image/index.md), [Qwen Image 3](https://docs.sociaro.com/models/alibaba-qwen-image-3/index.md) |
| Text or reference image to video | [PixVerse V6](https://docs.sociaro.com/models/pixverse-v6/index.md), [Pruna P-Video](https://docs.sociaro.com/models/pruna-p-video/index.md) |
| Generate an image with a native image endpoint | [Kling Image 4.0](https://docs.sociaro.com/models/kling-kling-4-0-image/index.md), [Ideogram 4.6](https://docs.sociaro.com/models/ideogram-ideogram-4-6/index.md), [Recraft V4.1](https://docs.sociaro.com/models/recraft-recraft-v4-1/index.md) |
| Upscale an existing video | [Pruna P-Video Upscale, options and pricing](https://docs.sociaro.com/models/pruna-p-video-upscale/#pricing) |
| Generate audio from video | [Sonilo Video to Music](https://docs.sociaro.com/models/sonilo-video-to-music/index.md), [Sonilo Video to SFX](https://docs.sociaro.com/models/sonilo-video-to-sfx/index.md) |
