Run any model by ID
create_taskRun any PopNow model by its exact API model ID with the model's own input fields, like POST /api/v1/jobs/createTask. Call it without max_usd to get the USD quote (nothing is charged), then again with max_usd after the user approves. Media tasks wait up to about 40 seconds, then return a result or job_id for get_task. Chat replies return in this call and are not retained for later retrieval. Embedding vectors are returned in structuredContent.embeddings.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>",
"input": "<input>"
},
"name": "create_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The model's input fields, exactly as in its schema (list_models with model shows them). Media fields take public https links or popnow:// links from earlier results. | |
| model | Yes | Exact PopNow API model ID, for example google/nano-banana-2.1/text-to-image. list_models shows the IDs and each model's inputs. | |
| max_usd | No | Approved maximum in USD as a decimal string with up to 9 fractional digits, copied from the quoted cost_usd. Set it only after the user approves; leave it out to get a quote. Nothing is charged without it. | |
| currency | No | Optional. Always USD for this endpoint. |