base_url at https://api.ethereal.llc/v1 and use an eth-... key.
Headers
| Header | Value |
|---|---|
Authorization | Bearer eth-... (or x-api-key: eth-...) |
Content-Type | application/json |
Body parameters
Model ID:
claude-opus-4-8, claude-sonnet-4-6, or claude-haiku-4-5.A list of messages. Each is
{ "role": "user" | "assistant", "content": ... },
where content is either a string or an array of content blocks
(text, image, tool_use, tool_result).Maximum number of tokens to generate.
The system prompt. A string, or an array of text blocks.
Tool definitions in the Anthropic format:
{ "name": string, "description": string, "input_schema": object }.Sampling temperature. Lower is more deterministic.
Nucleus sampling, an alternative to
temperature.Sequences that stop generation when produced.
Example request
SDK examples
Response
content contains a tool_use block and
stop_reason is tool_use:
Both tool use and streaming are supported. For streamed responses
(
stream: true), see Streaming.