Banafsh for developers

One address, one key: call Claude and other models from your coding tool or your own code.

API address

Claude Code and Anthropic SDKs — without /v1

https://gateway.banafsh.com

OpenAI SDKs and compatible tools — with /v1

https://gateway.banafsh.com/v1

A ready sample

curl https://gateway.banafsh.com/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-5-5",
    "messages": [{ "role": "user", "content": "Hi! Write a Python function that adds two numbers." }]
  }'

Replace YOUR_API_KEY with your own key; you get it on the keys page.

Two ways to pay

For developers · Banafsh