Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/evals/mintlify_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class MintlifyResponse:
def ask_mintlify(
question: str,
api_key: str,
domain: str = "docs.edenai.co",
domain: str = "edenai",
client: httpx.Client | None = None,
retries: int = 3,
retrieval_page_size: int = 10,
Expand Down
16 changes: 8 additions & 8 deletions v3/integrations/claude-code.mdx
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
---
title: "Claude Code"
icon: "/integration-logo/claude-ai-icondoc.svg"
description: "Configure Claude Code, Anthropic's official CLI coding agent, to use Eden AI for access to 500+ models behind a single API key."

Check warning on line 4 in v3/integrations/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (edenai) - vale-spellcheck

v3/integrations/claude-code.mdx#L4

Did you really mean 'Anthropic's'?
---

import { TechArticleSchema } from "/snippets/TechArticleSchema.mdx";

<TechArticleSchema
title={"Claude Code"}
description={"Configure Claude Code, Anthropic's official CLI coding agent, to use Eden AI for access to 500+ models behind a single API key."}

Check warning on line 11 in v3/integrations/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (edenai) - vale-spellcheck

v3/integrations/claude-code.mdx#L11

Did you really mean 'Anthropic's'?
path="v3/integrations/claude-code"
articleSection="Coding Agents"
about={"AI Coding Assistants"}
proficiencyLevel="Intermediate"
keywords={["Eden AI", "AI API", "Claude Code"]}
datePublished="2026-05-06T00:00:00Z"
dateModified="2026-05-07T00:00:00Z"
dateModified="2026-06-19T00:00:00Z"
/>

Configure [Claude Code](https://github.com/anthropics/claude-code), Anthropic's official CLI coding agent, to use Eden AI for access to 500+ models behind a single API key.
Expand All @@ -26,7 +26,7 @@

- **500+ models**: switch between Claude, GPT, Gemini, and more without reinstalling
- **One API key**: unified billing and monitoring across providers
- **Provider failover**: keep working when an upstream provider has an incident

Check warning on line 29 in v3/integrations/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (edenai) - vale-spellcheck

v3/integrations/claude-code.mdx#L29

Did you really mean 'failover'?

## Prerequisites

Expand All @@ -41,23 +41,23 @@
```bash bash / zsh
export ANTHROPIC_API_KEY="YOUR_EDEN_AI_API_KEY"
export ANTHROPIC_BASE_URL="https://api.edenai.run/v3"
export ANTHROPIC_MODEL="anthropic/claude-opus-4.7"
export ANTHROPIC_MODEL="anthropic/claude-opus-4-8"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="anthropic/claude-haiku-4-5"
export ANTHROPIC_DEFAULT_SONNET_MODEL="anthropic/claude-sonnet-4-6"
export ANTHROPIC_DEFAULT_OPUS_MODEL="anthropic/claude-opus-4-7"
export ANTHROPIC_DEFAULT_OPUS_MODEL="anthropic/claude-opus-4-8"
```

```powershell PowerShell
$env:ANTHROPIC_API_KEY = "YOUR_EDEN_AI_API_KEY"
$env:ANTHROPIC_BASE_URL = "https://api.edenai.run/v3"
$env:ANTHROPIC_MODEL = "anthropic/claude-opus-4.7"
$env:ANTHROPIC_MODEL = "anthropic/claude-opus-4-8"
$env:ANTHROPIC_DEFAULT_HAIKU_MODEL="anthropic/claude-haiku-4-5"
$env:ANTHROPIC_DEFAULT_SONNET_MODEL="anthropic/claude-sonnet-4-6"
$env:ANTHROPIC_DEFAULT_OPUS_MODEL="anthropic/claude-opus-4-7"
$env:ANTHROPIC_DEFAULT_OPUS_MODEL="anthropic/claude-opus-4-8"
```
</CodeGroup>

To make it permanent, add the `export` lines to `~/.bashrc` or `~/.zshrc` and reload your shell.

Check warning on line 60 in v3/integrations/claude-code.mdx

View check run for this annotation

Mintlify / Mintlify Validation (edenai) - vale-spellcheck

v3/integrations/claude-code.mdx#L60

Did you really mean 'zsh'?

### 2. Launch Claude Code

Expand All @@ -73,7 +73,7 @@

<CodeGroup>
```bash Claude variants
export ANTHROPIC_MODEL="anthropic/claude-opus-4.7" # default
export ANTHROPIC_MODEL="anthropic/claude-opus-4-8" # default
export ANTHROPIC_MODEL="anthropic/claude-sonnet-4-5" # cheaper, faster
export ANTHROPIC_MODEL="anthropic/claude-haiku-4-5" # fastest
```
Expand All @@ -98,12 +98,12 @@
curl -X POST https://api.edenai.run/v3/chat/completions \
-H "Authorization: Bearer $ANTHROPIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "anthropic/claude-opus-4.7", "messages": [{"role": "user", "content": "ping"}]}'
-d '{"model": "anthropic/claude-opus-4-8", "messages": [{"role": "user", "content": "ping"}]}'
```

### Model not found

Use the full `provider/model` string (e.g. `anthropic/claude-opus-4.7`, not `claude-opus-4.7`). Confirm the ID is in the catalog returned by `GET /v3/models`.
Use the full `provider/model` string (e.g. `anthropic/claude-opus-4-8`, not `claude-opus-4-8`). Confirm the ID is in the catalog returned by `GET /v3/models`.

### Connection issues

Expand Down
Loading