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
| Field | Type | Value in the sample |
|---|---|---|
look | string | imessage |
scheme | string | light |
size | string | medium |
messages | number | 3 |
watermark | boolean | true |
mime | string | image/png |
image_base64 | string | iVBORw0KGgoAAAANSUhEUgAAA0gAAARACAIAAABbceRvAAAAAXNSR0IArs4c... (106,728 characters: the PNG, base64) |
credits_used | number | 2 |
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.


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."}'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
- 401: the key is missing or wrong.
- 402: out of credits; top up on the pricing page.
- 422: the input does not match; the answer names the field.
- 429: too many calls too fast; wait a moment and try again.
- 503: the source did not answer; nothing is charged. Live state: status.
Free to start: 100 credits, no card. Then from $10. Credits you buy never expire.
Get my free keySame category: Chat · all APIs
How we calculate
- Price of one call and of 1,000 calls: The credits per call times the smallest paid plan's price per credit (its monthly price divided by its monthly credits), times 1,000 for the larger figure.
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.