Skip to main content
POST
  1. After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
  2. Regardless of whether callback_url is provided, you can retrieve the result through the unified Query Task Status endpoint.
Use grok-imagine-video-1.5 for three generation modes with 1–15 second outputs:
  • Text to video: omit both image fields. Supports 480p, 720p, and 1080p.
  • Image to video: provide exactly one item in image_urls as the first frame. Supports 480p, 720p, and 1080p.
  • Reference to video: provide 1–7 items in reference_image_urls. Reference them in the prompt as <IMAGE_0>, <IMAGE_1>, and so on. Supports 480p and 720p.
image_urls and reference_image_urls cannot be used together.

Models

  • grok-imagine-video-1.5 — Grok Imagine Video 1.5

Required parameters

  • prompt (required): up to 4,096 characters.

Optional parameters

  • image_urls: exactly one first-frame image for image-to-video.
  • reference_image_urls: 1–7 reference images for character, subject, or style consistency.
  • resolution: 480p, 720p, or 1080p. Reference-to-video does not support 1080p. Default: 720p.
  • duration: integer from 1 to 15. Default: 6 for text/image mode and 8 for reference mode.
  • aspect_ratio: 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, or 9:16. Available only for text and reference modes; default: 16:9.
  • callback_url: optional completion webhook URL.
Use public HTTPS image URLs or upload images through the playground before submitting.

Authorizations

Authorization
string
header
required

All API endpoints require Bearer Token authentication.

Create an API key: sign in to PoYo, open Dashboard → API Key at poyo.ai/dashboard/api-key, and click to create a key.

Add it to the request header:

Body

application/json
model
enum<string>
required
Available options:
grok-imagine-video-1.5
input
object
required

Omit image fields for text-to-video. Use image_urls for one first frame, or reference_image_urls for 1–7 references. The image fields are mutually exclusive.

callback_url
string<uri>

Response

Task submitted successfully

code
enum<integer>

Business status code. 200 means success; any other value means the request failed. Always check this field: some validation errors return HTTP 200 with code: 400 in the body.

  • 200: Success
  • 400: Invalid request parameters
  • 401: Missing or invalid API key
  • 402: Insufficient credits
  • 403: Permission denied
  • 404: Resource not found
  • 408: Request timeout
  • 429: Rate limit exceeded
  • 500: Internal server error
  • 502: Upstream service error
  • 503: Service unavailable

See Error Codes for details.

Available options:
200,
400,
401,
402,
403,
404,
408,
429,
500,
502,
503
Example:

200

message
string
data
object