Home · APIs · Chat · Chat render

Chat render API

One request, one key: POST /v1/chat/render. The sample below is a real response captured 20 November 2026, shortened for display (long text cut, lists cut to three items); it is not invented.

Price

2 credits a call. One call is about $0.0196 and 1,000 calls are about $19.60 at the smallest paid plan's rate.Formula A call that comes back empty is not charged.

Try it free

Runs one real call with the sample input below. No key and no sign-up; a few runs a day per visitor.

{
  "look": "imessage",
  "scheme": "light",
  "size": "medium",
  "speakers": [
    "Jordan",
    "Sam"
  ],
  "script": "Sam: Are we still on for the lake on Saturday?\nJordan: Yes. I booked the canoe for ten.\nSam: Perfect. I will bring the snacks."
}

What it returns

FieldTypeValue in the sample
lookstringimessage
schemestringlight
sizestringmedium
messagesnumber3
watermarkbooleantrue
mimestringimage/png
image_base64stringiVBORw0KGgoAAAANSUhEUgAAA0gAAARACAIAAABbceRvAAAAAXNSR0IArs4c... (106,728 characters: the PNG, base64)
credits_usednumber2

Sample response (20 November 2026)

{
  "look": "imessage",
  "scheme": "light",
  "size": "medium",
  "messages": 3,
  "watermark": true,
  "mime": "image/png",
  "image_base64": "iVBORw0KGgoAAAANSUhEUgAAA0gAAARACAIAAABbceRvAAAAAXNSR0IArs4c... (106,728 characters: the PNG, base64)",
  "credits_used": 2
}

The pictures this call drew

Real output captured 20 November 2026. These were drawn for a free-start account, so they carry the chatsrat.com mark; an account that has bought credits gets none.

A simulated iMessage-style chat of three messages about a lake trip, drawn by the API
look: imessage, scheme: light, size: medium
The same three messages drawn as a WhatsApp-style chat in the dark scheme
look: whatsapp, scheme: dark, size: medium

Measured on that call: 900 ms.

Code

curl -X POST https://api.foxapis.com/v1/chat/render \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"look":"imessage","scheme":"light","size":"medium","speakers":["Jordan","Sam"],"script":"Sam: Are we still on for the lake on Saturday?\nJordan: Yes. I booked the canoe for ten.\nSam: Perfect. I will bring the snacks."}'
import requests

r = requests.post(
    "https://api.foxapis.com/v1/chat/render",
    headers={"Authorization": "Bearer YOUR_KEY"},
    json={"look":"imessage","scheme":"light","size":"medium","speakers":["Jordan","Sam"],"script":"Sam: Are we still on for the lake on Saturday?\nJordan: Yes. I booked the canoe for ten.\nSam: Perfect. I will bring the snacks."},
)
print(r.json())
const r = await fetch("https://api.foxapis.com/v1/chat/render", {
  method: "POST",
  headers: { "Authorization": "Bearer YOUR_KEY", "Content-Type": "application/json" },
  body: JSON.stringify({"look":"imessage","scheme":"light","size":"medium","speakers":["Jordan","Sam"],"script":"Sam: Are we still on for the lake on Saturday?\nJordan: Yes. I booked the canoe for ten.\nSam: Perfect. I will bring the snacks."}),
});
console.log(await r.json());

n8n (HTTP Request node: paste it into a workflow)

{
  "nodes": [
    {
      "name": "Chat render",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [
        0,
        0
      ],
      "parameters": {
        "method": "POST",
        "url": "https://api.foxapis.com/v1/chat/render",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "Bearer YOUR_KEY"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "{\"look\":\"imessage\",\"scheme\":\"light\",\"size\":\"medium\",\"speakers\":[\"Jordan\",\"Sam\"],\"script\":\"Sam: Are we still on for the lake on Saturday?\\nJordan: Yes. I booked the canoe for ten.\\nSam: Perfect. I will bring the snacks.\"}"
      }
    }
  ],
  "connections": {}
}

Assistants (Claude, ChatGPT, Cursor)

Connect the FoxAPIs server once; the tools it offers are listed on the MCP page.

claude mcp add --transport http foxapis https://foxapis.com/mcp \
  --header "Authorization: Bearer YOUR_KEY"

Errors and limits

Free to start: 100 credits, no card. Then from $10. Credits you buy never expire.

Get my free key

Same category: Chat · all APIs

How we calculate

Data: scripts/data/endpoint-credits.json and plans.json, 2026-11-20. Every other figure on this page is copied from the record, not calculated by us.