Documentation Index
Fetch the complete documentation index at: https://docs.apigo.ai/llms.txt
Use this file to discover all available pages before exploring further.
Official capability boundary
- Anthropic’s public API does not expose a dedicated image-generation endpoint
- Claude is strong at image understanding, not direct image creation
Recommended workflow
- Use Claude /v1/messages to refine prompts
- Hand the final prompt to a provider that officially supports image generation
- Use Claude again for review, QA, or revision instructions
cURL example
curl https://api.anthropic.com/v1/messages \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d '{
"model": "claude-sonnet-4-20250514",
"max_tokens": 512,
"messages": [
{
"role": "user",
"content": [{ "type": "text", "text": "Rewrite this prompt for a clean ApiGo product poster: A clean ApiGo product poster" }]
}
]
}'
Python example
from anthropic import Anthropic
client = Anthropic(api_key="<ANTHROPIC_API_KEY>")
response = client.messages.create(
model="claude-sonnet-4-20250514",
max_tokens=512,
messages=[
{
"role": "user",
"content": [
{
"type": "text",
"text": "Rewrite this prompt for a clean ApiGo product poster: A clean ApiGo product poster",
}
],
}
],
)
print(response.content[0].text)
Node.js example
import Anthropic from "@anthropic-ai/sdk";
const client = new Anthropic({
apiKey: process.env.ANTHROPIC_API_KEY,
});
const response = await client.messages.create({
model: "claude-sonnet-4-20250514",
max_tokens: 512,
messages: [
{
role: "user",
content: [
{
type: "text",
text: "Rewrite this prompt for a clean ApiGo product poster: A clean ApiGo product poster"
}
]
}
]
});
console.log(response.content[0].text);
Best practices
- Do not invent a fake “Claude image generation” endpoint for the frontend
- Use Claude for prompt refinement and review instead of direct rendering
- Keep the generation and understanding pipelines separate