<aside>

Overview

:ambient-logo-original: Ambient Documentation

What is Ambient?

Getting Started

Testnet

App

API

On-Chain

Tool Oracle

Claude Code

OpenClaw

OpenCode

Miners

Encyclopedia

Solana Quickstart

X402 Client Documentation

Headless x402 Subscriptions

Developers

OpenAI SDK

Anthropic SDK

API Docs

API Playground

Links

🌐 Homepage

✉️ [email protected]

</aside>

Ambient provides an OpenAI-compatible and Anthropic-compatible inference API at https://api.ambient.xyz.

Prerequisites

Get an API key through app.ambient.xyz/keys, or create and fund an API-only account through Headless x402 Subscriptions without using the Ambient UI.

For speed and flexibility, we recommend using Direct API Calls. These allow you to control thinking tokens (balancing speed and latency) and perform Deep Research directly. The streaming Python demo covers reasoning and non-reasoning modes; place your API key in a file named ambient_api_key.txt in the same directory. The condensed API reference contains Python examples of all functions.

Integration Options

1. OpenAI SDK

Use the official OpenAI SDK with Ambient as the base URL. This is ideal if you're already using OpenAI's SDK or prefer its interface.

See OpenAI SDK for Python and JavaScript examples.

2. Anthropic SDK

Use the official Anthropic SDK with Ambient as the base URL. This is ideal if you prefer Anthropic's Messages API format.

See Anthropic SDK for Python and JavaScript examples.

3. Direct API Calls

Make HTTP requests directly to the API without using an SDK. This gives you full control and works with any programming language.

See the Interactive API Documentation for endpoints, request/response schemas, and to try requests directly in the browser.

Resources