segment_map
Creates a Grok Imagine segmentation task on RunAPI from an image URL, returning a task ID, status, and output URLs, with optional polling until completion.
Instructions
Create a Grok Imagine task on RunAPI (segment map). Returns a task id, status, and output URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Poll until the task reaches a terminal status. | |
| model | No | RunAPI model slug for this model line. | |
| image_url | No | Public image URL that the service can fetch. Declared type: string. | |
| timeout_ms | No | ||
| callback_url | No | Webhook URL for terminal Task delivery. Declared type: string. | |
| source_task_id | No | Completed Image 2.0 text-to-image Task ID owned by the same account. Compatibility input; use image_url instead. Declared type: string. | |
| poll_interval_ms | No |