Skip to main content

Overview

Moda supports multiple LLM providers through a single API. Each provider has different models available and may require different authentication.

OpenAI

Provider name: openai

Available models

ModelDescription
gpt-4oLatest GPT-4 Omni model
gpt-4o-miniSmaller, faster GPT-4 Omni
gpt-4-turboGPT-4 Turbo
gpt-4Original GPT-4
gpt-3.5-turboFast and cost-effective

Example

{
  "model": "gpt-4o@@openai",
  "messages": [...]
}

Authentication

Pass your OpenAI API key in the X-Provider-Key header.

Anthropic

Provider name: anthropic

Available models

ModelDescription
claude-opus-4-5-20251101Most capable Claude model
claude-sonnet-4-5-20250929Best balance of speed and capability
claude-haiku-4-5-20251001Fast and efficient
claude-3-5-sonnet-20241022Previous generation Sonnet

Example

{
  "model": "claude-sonnet-4-5-20250929@@anthropic",
  "messages": [...]
}

Authentication

Pass your Anthropic API key in the X-Provider-Key header.

AWS Bedrock

Provider name: bedrock

Available models

ModelBedrock Model ID
Claude Opus 4.5anthropic.claude-opus-4-5-20251101-v1:0
Claude Sonnet 4.5anthropic.claude-sonnet-4-5-20250929-v1:0
Claude Haiku 4.5anthropic.claude-haiku-4-5-20251001-v1:0
Claude 3.5 Sonnetanthropic.claude-3-5-sonnet-20241022-v2:0

Example

Bedrock requires the native Anthropic request format, not OpenAI format. You must include anthropic_version in every request.
{
  "model": "anthropic.claude-sonnet-4-5-20250929-v1:0@@bedrock",
  "anthropic_version": "bedrock-2023-05-31",
  "max_tokens": 1024,
  "messages": [{"role": "user", "content": "Hello!"}]
}

Authentication

AWS Bedrock requires AWS credentials:
-H "X-AWS-Access-Key-Id: YOUR_ACCESS_KEY"
-H "X-AWS-Secret-Access-Key: YOUR_SECRET_KEY"
-H "X-AWS-Region: us-east-1"

Choosing a provider

OpenAI

Best for general-purpose tasks. Wide model selection from fast to powerful.

Anthropic

Excellent for complex reasoning and longer conversations. Strong safety features.

AWS Bedrock

Ideal if you are already in the AWS ecosystem. Enterprise security and compliance.