Read a picture into a prompt
image_to_promptWrite the prompt that would make a picture like this one, for an image model (model_id, or one the picture suits). image is a JPEG, PNG or WebP data URL, about 700 KB at most (scale it to 1024px first). Costs no credits; 30 reads a day. For a picture already in the account, its generation's prompt is the answer.
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": {
"image": "<image>"
},
"name": "image_to_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| model_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| message | Yes | ||
| model_id | Yes |