Skip to content

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 NameTypeRequiredDescriptionExample
idstringRequiredgrok:eee6faa8-9dee-455c-aa82-02ac623adf3a

Header Parameters

Parameter NameTypeRequiredDescriptionExample
Content-TypestringRequiredapplication/json
AcceptstringRequiredapplication/json
AuthorizationstringOptionalBearer {{YOUR_API_KEY}}
X-Forwarded-HoststringOptionallocalhost: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 NameTypeRequiredDescription
idstringRequired
statusstringRequired
video_urlnullRequired
enhanced_promptstringRequired
status_update_timeintegerRequired

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
}