image_to_prompt

Read a picture into a prompt

Write 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.

Scope

Behaviour

Read-only
Reads the caller's own account and changes nothing.
Reaches outside
Sends the picture to a vision model to read it.

Credits

What the tool's description says about credits, verbatim.

Inputs

Example call

A tools/call request with the required arguments only, each a placeholder read off the schema. Replace them before sending.

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "image_to_prompt",
    "arguments": {
      "image": "<image>"
    }
  }
}

Input schema

As the server sends it in tools/list.

{
  "type": "object",
  "properties": {
    "image": {
      "type": "string",
      "maxLength": 960000
    },
    "model_id": {
      "type": "string"
    }
  },
  "required": [
    "image"
  ],
  "additionalProperties": false
}

Related tools

Every tool· This page as Markdown