AIGate
← All news

Anthropic SDK works on AIGate too

Developer · 2026-04-30

Apps built on the Anthropic Python SDK can switch to AIGate by changing only the base_url:

import anthropic
client = anthropic.Anthropic(
  api_key="sk-aigate-...",
  base_url="https://api.aigatecloud.com",
)
msg = client.messages.create(
  model="quality",
  max_tokens=1024,
  messages=[{"role":"user","content":"Hello"}],
)

AIGate translates the request to the OpenAI shape, runs it through the routing engine, and converts the response back to Claude's {content:[{type:"text",text:"…"}]} format. system prompts are honored, stop_reason is preserved.

← Drop AIGate into your OpenAI SDK in 30 seconds/v1/generate-post — caption + hashtags + image in one call →

Try AIGate free

100 credits on signup · No credit card

Open Dashboard →