gpt-4o-image-mcp
v0.2.2RunAPI MCP server for GPT-4o Image: create tasks, poll status, check pricing.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
login
Authenticate RunAPI by opening a browser PKCE login flow and saving the API key to ~/.config/runapi/config.json.
| Parameter | Type | Description |
|---|---|---|
force | boolean | Re-run browser login when the current credential comes from the local config file. |
text_to_image
Create a GPT-4o Image task on RunAPI (text to image). Returns a task id, status, and output URLs.
| Parameter | Type | Description |
|---|---|---|
aspect_ratio * | string | Declared type: string. Known values: "1:1", "3:2", "2:3". |
callback_url | string | Declared type: string. |
enable_prompt_expansion | boolean | Declared type: boolean. |
mask_url | string | Declared type: string. |
model | string | RunAPI model slug for this model line. |
output_count | integer | Declared type: integer. Known values: 1, 2, 4. |
poll_interval_ms | integer | |
prompt | string | Declared type: string. |
source_image_urls | array | Declared type: array. |
timeout_ms | integer | |
wait | boolean | Poll until the task reaches a terminal status. |
get_task
Fetch the current status and latest result payload for a gpt-4o-image task.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | Task id returned when the task was created. |
action | string | Asynchronous endpoint the task was created on. Defaults to the line's only asynchronous endpoint. |
check_pricing
Look up RunAPI pricing for the gpt-4o-image model line.
| Parameter | Type | Description |
|---|---|---|
action | string | Endpoint name. Defaults to the endpoint that offers the model. |
model | string | Model slug. Defaults to the line's primary model. |