Anthropic
Use the Claude series models from Anthropic to quickly build your applications.
The Makers Models service does not provide Anthropic vendor keys or commercial billing capabilities to users. You must bind the vendor's API Key on the console page before you can invoke Claude series models.
The following is an example of the model and model parameter passing:
Model | model Parameter to Pass |
claude-opus-4-8 | anthropic/claude-opus-4-8 |
claude-opus-4-7 | anthropic/claude-opus-4-7 |
claude-opus-4-6 | anthropic/claude-opus-4-6 |
claude-sonnet-4-6 | anthropic/claude-sonnet-4-6 |
claude-opus-4-5-20251101 | anthropic/claude-opus-4-5-20251101 |
claude-haiku-4-5-20251001 | anthropic/claude-haiku-4-5-20251001 |
claude-sonnet-4-5-20250929 | anthropic/claude-sonnet-4-5-20250929 |
Call Example
Before invoking a model, ensure that you have bound the Anthropic vendor's API Key. Go to the Models & Keys page in the console to bind it.
SDK
Using the AI SDK
// Node.js 18+import { createAiGateway } from "@edgeone/makers-models-provider";import { generateText } from "ai";const aiGateway = createAiGateway({apiKey: process.env.MAKERS_MODELS_KEY,});const { text } = await generateText({model: aiGateway("anthropic/claude-opus-4-7"),prompt: "What can you do?",});
Using the Anthropic JS SDK
// Node.js 18+import Anthropic from "@anthropic-ai/sdk";const client = new Anthropic({apiKey: process.env.MAKERS_MODELS_KEY,baseURL: "https://ai-gateway.edgeone.link",});const message = await client.messages.create({model: "anthropic/claude-opus-4-7",messages: [{ role: "user", content: "What can you do?" }],});console.log(message.content[0].text);
cURL
Making Requests with the Anthropic Messages API
curl -i -X POST "https://ai-gateway.edgeone.link/v1/messages" \-H "X-Api-Key: {MAKERS_MODELS_KEY}" \-H "Content-Type: application/json" \-d '{"model": "anthropic/claude-opus-4-7","messages": [{"role":"user","content":"What can you do?"}]}'
Making Requests to the OpenAI Chat Completions API
curl -i -X POST "https://ai-gateway.edgeone.link/v1/chat/completions" \-H "Authorization: Bearer {MAKERS_MODELS_KEY}" \-H "Content-Type: application/json" \-d '{"model": "anthropic/claude-opus-4-7","messages": [{"role": "user","content": "What can you do?"}]}'