Theme
Query Task
GET
https://www.kkiai.com/v1/video/query
Given a prompt, the model will return one or more predicted completions, and can also return the probability of alternative tokens at each position.
Create a completion for the provided prompt and parameters
Request Parameters
Authorization
Add the Authorization parameter in the Header, with its value being the Token concatenated after Bearer
Example: Authorization: Bearer ********************
Query Parameters
| Parameter Name | Type | Required | Description | Example |
|---|---|---|---|---|
id | string | Required | grok:eee6faa8-9dee-455c-aa82-02ac623adf3a |
Header Parameters
| Parameter Name | Type | Required | Description | Example |
|---|---|---|---|---|
Content-Type | string | Required | application/json | |
Accept | string | Required | application/json | |
Authorization | string | Optional | Bearer {{YOUR_API_KEY}} | |
X-Forwarded-Host | string | Optional | localhost:5173 |
cURL Example
bash
curl --location --request GET 'https://www.kkiai.com/v1/video/query?id=grok:eee6faa8-9dee-455c-aa82-02ac623adf3a' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>'Response
🟢 200 Success
Response Body
| Parameter Name | Type | Required | Description |
|---|---|---|---|
id | string | Required | |
status | string | Required | |
video_url | null | Required | |
enhanced_prompt | string | Required | |
status_update_time | integer | Required |
Response Example
json
{
"id": "033fa60e-f37c-4ff6-a44d-5585ffea938d",
"status": "pending",
"video_url": null,
"enhanced_prompt": "```\nA surreal and whimsical digital painting of a majestic brown cow with large, feathered wings soaring gracefully through a vibrant blue sky. The cow has a joyful expression, its tail streaming behind it as it flies among fluffy white clouds. Below, a patchwork of green farmland stretches into the distance, with tiny farm buildings and a group of astonished farmers looking up in amazement. The scene is bathed in warm golden sunlight, creating a dreamlike and magical atmosphere. Art style inspired by fantasy illustrations with soft brushstrokes and rich, saturated colors.\n```",
"status_update_time": 1750323167003
}