> ## Documentation Index
> Fetch the complete documentation index at: https://docs.atlaso.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Python API reference

> Generated from client signatures and docstrings. Do not edit this page by hand.

Generated by `python scripts/gateway-client/reference_python.py`. Covers `atlaso`, `atlaso.testing`, result types, memory APIs, and tool adapters reached through a user scope. Shared-method sections document inherited APIs on clients, user scopes, completed results, and memory tools.

## Shared client methods

Shared configuration and methods inherited by the public adapters.

```py theme={null}
class _Base:
    ...
```

### Shared client methods.**init**

Initialize \_Base with the supplied configuration.

```py theme={null}
def __init__(self, *, api_key: Optional[str]=None, base_url: Optional[str]=None, http_client: Any=None, timeout: Optional[float]=None, max_retries: int=2, client_header: bool=True, on_receipt: Optional[Callable[[Receipt], None]]=None, on_error: Optional[Callable[[ErrorInfo], None]]=None, on_notice: Optional[Callable[[str], None]]=None) -> None: ...
```

### Shared client methods.client\_options

Spread into your provider client: OpenAI(\*\*atlaso.client\_options()). Carries no user.

```py theme={null}
def client_options(self) -> Dict[str, Any]: ...
```

### Shared client methods.anthropic\_options

Spread into Anthropic(...); the provider client appends /v1/messages.

```py theme={null}
def anthropic_options(self) -> Dict[str, Any]: ...
```

### Shared client methods.read\_receipt

Read a call's receipt from `.with_raw_response.create(...)`. Never changes a chunk or a request.

```py theme={null}
def read_receipt(self, raw: Any) -> Any: ...
```

### Shared client methods.receipt\_from\_headers

Parse gateway reply headers into a typed receipt without invoking callbacks.

```py theme={null}
def receipt_from_headers(self, headers: Mapping[str, str]) -> Receipt: ...
```

### Shared client methods.classify

Classify an exception without logging or sending it anywhere.

```py theme={null}
def classify(self, err: BaseException) -> ErrorInfo: ...
```

## Atlaso

Sync entry point.

atlaso = Atlaso()                                  # ATLASO\_KEY
user = atlaso.for\_user("demo-user-42")               # one per request
reply = user.openai().chat.completions.create(...)

```py theme={null}
class Atlaso(_Base):
    ...
```

### Atlaso.read\_receipt

Read a call's receipt from `.with_raw_response.create(...)`. Never changes a chunk or a request.

```py theme={null}
def read_receipt(self, raw: Any) -> Tracked: ...
```

### Atlaso.openai

The shared OpenAI client this object builds on first use (`pip install openai`).

It uses this object's max\_retries, its timeout when you set one, and its http\_client when the
provider's HTTP library accepts it. It carries no user. With a key whose memory is for "Me", calls use your own memory; with a
per-user key, a call without a user goes out with no memory. For your app's users, use for\_user(id).

```py theme={null}
def openai(self) -> 'OpenAI': ...
```

### Atlaso.anthropic

The shared Anthropic client this object builds on first use (`pip install anthropic`). No user.

```py theme={null}
def anthropic(self) -> 'Anthropic': ...
```

### Atlaso.memory

Your own memory, with a "Me" key: add, add\_many, list, search, update and delete. No erase.

A key set to "Memory for each user of my app" uses for\_user(id).memory instead (this one
answers memory\_scope\_per\_user). A key whose memory is Off answers memory\_off.

```py theme={null}
@property
def memory(self) -> OwnerMemoryApi: ...
```

### Atlaso.shared

Shared facts for this server key's project.

```py theme={null}
@property
def shared(self) -> SharedApi: ...
```

### Atlaso.calls

Developer-key call lookup.

```py theme={null}
@property
def calls(self) -> Calls: ...
```

### Atlaso.usage

Per-user usage pages.

```py theme={null}
@property
def usage(self) -> Usage: ...
```

### Atlaso.for\_user

Create a scope for one user in this key's project. Call per request.

```py theme={null}
def for_user(self, user_id: str, *, memory: Optional[str]=None, tags: Optional[Mapping[str, str]]=None, session_id: Optional[str]=None) -> UserScope: ...
```

### Atlaso.revoke\_browser\_token

Revoke one browser token by public id.

```py theme={null}
def revoke_browser_token(self, token_id: str) -> BrowserTokenRevoke: ...
```

### Atlaso.close

Close the connections this object created: its memory API pool and the clients behind
user.openai() / user.anthropic(). Never a client you passed in.

```py theme={null}
def close(self) -> None: ...
```

## AsyncAtlaso

Async entry point; the same surface with async memory methods.

```py theme={null}
class AsyncAtlaso(_Base):
    ...
```

### AsyncAtlaso.openai

The shared AsyncOpenAI client this object builds on first use (`pip install openai`).

It carries no user. With a key whose memory is for "Me", calls use your own memory; with a
per-user key, a call without a user goes out with no memory. For your app's users, use for\_user(id).

```py theme={null}
def openai(self) -> 'AsyncOpenAI': ...
```

### AsyncAtlaso.anthropic

The shared AsyncAnthropic client this object builds on first use (`pip install anthropic`). No user.

```py theme={null}
def anthropic(self) -> 'AsyncAnthropic': ...
```

### AsyncAtlaso.memory

Your own memory, with a "Me" key (async): add, add\_many, list, search, update and delete. No erase.

```py theme={null}
@property
def memory(self) -> AsyncOwnerMemoryApi: ...
```

### AsyncAtlaso.shared

Shared facts for this server key's project.

```py theme={null}
@property
def shared(self) -> AsyncSharedApi: ...
```

### AsyncAtlaso.calls

Asynchronous developer-key call lookup.

```py theme={null}
@property
def calls(self) -> AsyncCalls: ...
```

### AsyncAtlaso.usage

Asynchronous per-user usage pages.

```py theme={null}
@property
def usage(self) -> AsyncUsage: ...
```

### AsyncAtlaso.for\_user

Create a scope for one user in this key's project. Call per request.

```py theme={null}
def for_user(self, user_id: str, *, memory: Optional[str]=None, tags: Optional[Mapping[str, str]]=None, session_id: Optional[str]=None) -> AsyncUserScope: ...
```

### AsyncAtlaso.revoke\_browser\_token

Revoke one browser token by public id.

```py theme={null}
async def revoke_browser_token(self, token_id: str) -> BrowserTokenRevoke: ...
```

### AsyncAtlaso.close

Close the connections this object created: its memory API pool and the clients behind
user.openai() / user.anthropic(). Never a client you passed in.

```py theme={null}
async def close(self) -> None: ...
```

## ErrorInfo

Typed facts about one error. Python names; `to_dict()` gives the canonical camelCase JSON.

```py theme={null}
class ErrorInfo:
    code: Optional[str]
    kind: str
    status: Optional[int]
    type: Optional[str]
    param: Optional[str]
    message: str
    request_id: Optional[str]
    retryable: bool
    retry_after_ms: Optional[float]
    doc_url: Optional[str]
    known: bool
    in_stream: bool
```

### ErrorInfo.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## AtlasoError

Base class for every error this library raises itself.

```py theme={null}
class AtlasoError(Exception):
    ...
```

## ConfigurationError

A setup mistake caught before any request leaves (code says which).

```py theme={null}
class ConfigurationError(AtlasoError):
    ...
```

### ConfigurationError.**init**

Initialize ConfigurationError with the supplied configuration.

```py theme={null}
def __init__(self, code: str, message: str) -> None: ...
```

## MemoryAPIError

A memory API call failed; `.info` holds the typed ErrorInfo.

```py theme={null}
class MemoryAPIError(AtlasoError):
    ...
```

### MemoryAPIError.**init**

Initialize MemoryAPIError with the supplied configuration.

```py theme={null}
def __init__(self, info: ErrorInfo) -> None: ...
```

## CursorInvalidError

The list cursor no longer exists (400 invalid\_after). The iterator never restarts silently.

```py theme={null}
class CursorInvalidError(MemoryAPIError):
    ...
```

## NotSentError

The request never reached the server (the connection did not open), so nothing was saved.

Raised by add() once its retries are used up. `safe_to_repeat` is True: sending the same
add again cannot create a duplicate.

```py theme={null}
class NotSentError(MemoryAPIError):
    ...
```

## InvalidRequestError

An argument refused before anything was sent (for example a malformed fact id).

Also a ValueError, so existing handlers keep working. `info.kind` is "invalid\_request" and
it is never retryable: resending the same arguments cannot succeed.

```py theme={null}
class InvalidRequestError(AtlasoError, ValueError):
    ...
```

### InvalidRequestError.**init**

Initialize InvalidRequestError with the supplied configuration.

```py theme={null}
def __init__(self, code: str, message: str) -> None: ...
```

## Memory

One stored fact. Stored text may differ from the input: recognised passwords, API keys and tokens are redacted, but unrecognised secrets and other sensitive details can remain.

```py theme={null}
class Memory:
    id: str
    text: str
    source: str
    created_at: Optional[_dt.datetime]
    app_user_label: Optional[str]
    engine: Optional[Dict[str, Any]] = None
```

### Memory.from\_wire

Parse a gateway fact object into a typed Memory.

```py theme={null}
def from_wire(cls, obj: Dict[str, Any]) -> 'Memory': ...
```

### Memory.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## Page

A newest-first page of facts with a continuation cursor.

```py theme={null}
class Page:
    data: List[Memory]
    first_id: Optional[str]
    last_id: Optional[str]
    has_more: bool
```

### Page.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## SharedFact

One fact every app user of the key's project gets. No app-user label: it belongs to the project.

```py theme={null}
class SharedFact:
    id: str
    text: str
    source: str
    created_at: Optional[_dt.datetime]
```

### SharedFact.from\_wire

Parse a gateway shared fact object.

```py theme={null}
def from_wire(cls, obj: Dict[str, Any]) -> 'SharedFact': ...
```

### SharedFact.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## SharedPage

A newest-first page of shared facts; total counts the project's facts on every page.

```py theme={null}
class SharedPage:
    data: List[SharedFact]
    first_id: Optional[str]
    last_id: Optional[str]
    has_more: bool
    total: Optional[int]
```

### SharedPage.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## MemoryExport

All facts for one user in this key's project, newest first. Not an atomic snapshot.

```py theme={null}
class MemoryExport:
    generated_at: _dt.datetime
    data: List[Memory]
    fact_count: int
    page_count: int
```

### MemoryExport.to\_dict

JSON-ready right-of-access response, with UTC generation time and counts.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## AddedResult

Saved. `memory` is the stored fact. Stored text may differ from the input: recognised passwords, API keys and tokens are redacted, but unrecognised secrets and other sensitive details can remain.

```py theme={null}
class AddedResult:
    memory: Memory
    idempotency_key: str = ''
    outcome: Literal['added'] = field(default='added', init=False)
    safe_to_repeat: Literal[True] = field(default=True, init=False)
```

### AddedResult.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## AddUnknownResult

No clear answer: reuse idempotency\_key to resend safely within 24 hours.

```py theme={null}
class AddUnknownResult:
    error: ErrorInfo
    idempotency_key: str = ''
    outcome: Literal['unknown'] = field(default='unknown', init=False)
    safe_to_repeat: Literal[True] = field(default=True, init=False)
```

### AddUnknownResult.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## AddRejectedResult

Nothing was stored: an erase of this user is still running.

```py theme={null}
class AddRejectedResult:
    error: ErrorInfo
    reason: Literal['erase_in_progress'] = 'erase_in_progress'
    outcome: Literal['rejected'] = field(default='rejected', init=False)
    safe_to_repeat: Literal[True] = field(default=True, init=False)
```

### AddRejectedResult.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## SharedAddedResult

Saved. `memory` is the stored shared fact. Stored text may differ from the input: recognised passwords, API keys and tokens are redacted, but unrecognised secrets and other sensitive details can remain.

```py theme={null}
class SharedAddedResult:
    memory: SharedFact
    idempotency_key: str = ''
    outcome: Literal['added'] = field(default='added', init=False)
    safe_to_repeat: Literal[True] = field(default=True, init=False)
```

### SharedAddedResult.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## SearchHit

A memory and its within-answer search score.

```py theme={null}
class SearchHit:
    memory: Memory
    score: float
```

## BatchResult

Per-item save results returned by the gateway.

```py theme={null}
class BatchResult:
    results: List[Dict[str, Any]]
    complete: bool
    idempotency_key: str
```

## UpdateResult

New fact and the id it replaced.

```py theme={null}
class UpdateResult:
    memory: Memory
    replaces: str
```

## Completed result methods

Shared by outcomes that are already final: there is nothing to resume.

```py theme={null}
class _Final:
    ...
```

### Completed result methods.resume

Reject resumption of an already completed operation.

```py theme={null}
def resume(self, *, wait: Optional[float]=None) -> Any: ...
```

## DeletedResult

The requested fact was deleted from this user's project.

```py theme={null}
class DeletedResult(_Final):
    memory_id: str
    outcome: Literal['deleted'] = field(default='deleted', init=False)
    retry_after_ms: None = field(default=None, init=False)
    resume_available: Literal[False] = field(default=False, init=False)
```

### DeletedResult.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## AlreadyGoneResult

The id was not there.

```py theme={null}
class AlreadyGoneResult(_Final):
    memory_id: str
    outcome: Literal['already_gone'] = field(default='already_gone', init=False)
    retry_after_ms: None = field(default=None, init=False)
    resume_available: Literal[False] = field(default=False, init=False)
```

### AlreadyGoneResult.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## DeletePendingResult

The server is still deleting. resume() resends the same DELETE (safe).

```py theme={null}
class DeletePendingResult:
    memory_id: str
    retry_after_ms: float
    outcome: Literal['pending'] = field(default='pending', init=False)
    resume_available: Literal[True] = field(default=True, init=False)
```

### DeletePendingResult.resume

Resend the same DELETE (safe). Async scopes return an awaitable.

```py theme={null}
def resume(self, *, wait: Optional[float]=None) -> Any: ...
```

### DeletePendingResult.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## ErasedResult

Every fact of this user in this key's project is gone. Erased facts cannot be recovered.

```py theme={null}
class ErasedResult(_Final):
    facts_deleted: Optional[int] = None
    outcome: Literal['erased'] = field(default='erased', init=False)
    retry_after_ms: None = field(default=None, init=False)
    resume_available: Literal[False] = field(default=False, init=False)
```

### ErasedResult.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## ErasePendingResult

The server is still erasing. resume() resends the same erase (safe).

```py theme={null}
class ErasePendingResult:
    retry_after_ms: float
    facts_deleted: None = field(default=None, init=False)
    outcome: Literal['pending'] = field(default='pending', init=False)
    resume_available: Literal[True] = field(default=True, init=False)
```

### ErasePendingResult.resume

Resend the same erase (safe). Async scopes return an awaitable.

```py theme={null}
def resume(self, *, wait: Optional[float]=None) -> Any: ...
```

### ErasePendingResult.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## MemoryList

Iterates every memory for the user, newest first, fetching pages as needed.

```py theme={null}
class MemoryList:
    ...
```

### MemoryList.**init**

Initialize MemoryList with the supplied configuration.

```py theme={null}
def __init__(self, api: _PageOwner, limit: Optional[int], after: Optional[str]) -> None: ...
```

### MemoryList.page

Fetch only the first page.

```py theme={null}
def page(self) -> Page: ...
```

## AsyncMemoryList

Lazily read newest-first facts, fetching pages only as they are consumed.

```py theme={null}
class AsyncMemoryList:
    ...
```

### AsyncMemoryList.**init**

Initialize AsyncMemoryList with the supplied configuration.

```py theme={null}
def __init__(self, api: _PageOwner, limit: Optional[int], after: Optional[str]) -> None: ...
```

### AsyncMemoryList.page

Fetch one page using this iterator's initial limit and cursor.

```py theme={null}
async def page(self) -> Page: ...
```

## SharedList

Iterates every shared fact of the project, newest first, fetching pages as needed.

```py theme={null}
class SharedList:
    ...
```

### SharedList.**init**

Initialize SharedList with the supplied configuration.

```py theme={null}
def __init__(self, api: 'SharedApi', limit: Optional[int], after: Optional[str]) -> None: ...
```

### SharedList.page

Fetch only the first page.

```py theme={null}
def page(self) -> SharedPage: ...
```

## AsyncSharedList

Lazily read newest-first shared facts, fetching pages only as they are consumed.

```py theme={null}
class AsyncSharedList:
    ...
```

### AsyncSharedList.**init**

Initialize AsyncSharedList with the supplied configuration.

```py theme={null}
def __init__(self, api: 'AsyncSharedApi', limit: Optional[int], after: Optional[str]) -> None: ...
```

### AsyncSharedList.page

Fetch one page using this iterator's initial limit and cursor.

```py theme={null}
async def page(self) -> SharedPage: ...
```

## \_FactsApi

The fact methods of user.memory and atlaso.memory (sync); export and erase are user.memory's only.

```py theme={null}
class _FactsApi:
    ...
```

### \_FactsApi.add

Save one fact with an automatic idempotency key; reuse the returned key for manual resend.

```py theme={null}
def add(self, text: str, *, idempotency_key: Optional[str]=None) -> AddResult: ...
```

### \_FactsApi.search

Preview recall for this memory; scores compare within one answer.

```py theme={null}
def search(self, query: str, *, limit: Optional[int]=None) -> List[SearchHit]: ...
```

### \_FactsApi.add\_many

Save 1-50 facts with one idempotency key and per-item results.

```py theme={null}
def add_many(self, texts: List[str], *, idempotency_key: Optional[str]=None) -> BatchResult: ...
```

### \_FactsApi.update

Correct a fact; the new fact has a new id and the old id is no longer listed or recalled.

```py theme={null}
def update(self, memory_id: str, text: str) -> UpdateResult: ...
```

### \_FactsApi.list

Read newest-first facts, fetching pages lazily.

```py theme={null}
def list(self, *, limit: Optional[int]=None, after: Optional[str]=None) -> MemoryList: ...
```

### \_FactsApi.delete

Delete one fact: "deleted", "already\_gone" or "pending" (then call result.resume()).

```py theme={null}
def delete(self, memory_id: str, *, wait: Optional[float]=None) -> DeleteResult: ...
```

## \_AsyncFactsApi

The fact methods of user.memory and atlaso.memory (async); export and erase are user.memory's only.

```py theme={null}
class _AsyncFactsApi:
    ...
```

### \_AsyncFactsApi.add

Save one fact with an automatic idempotency key; reuse the returned key for manual resend.

```py theme={null}
async def add(self, text: str, *, idempotency_key: Optional[str]=None) -> AddResult: ...
```

### \_AsyncFactsApi.search

Preview recall for this memory; scores compare within one answer.

```py theme={null}
async def search(self, query: str, *, limit: Optional[int]=None) -> List[SearchHit]: ...
```

### \_AsyncFactsApi.add\_many

Save 1-50 facts with one idempotency key and per-item results.

```py theme={null}
async def add_many(self, texts: List[str], *, idempotency_key: Optional[str]=None) -> BatchResult: ...
```

### \_AsyncFactsApi.update

Correct a fact; the new fact has a new id and the old id is no longer listed or recalled.

```py theme={null}
async def update(self, memory_id: str, text: str) -> UpdateResult: ...
```

### \_AsyncFactsApi.list

Read newest-first facts, fetching pages lazily.

```py theme={null}
def list(self, *, limit: Optional[int]=None, after: Optional[str]=None) -> AsyncMemoryList: ...
```

### \_AsyncFactsApi.delete

Delete one fact. Pending results can be resumed.

```py theme={null}
async def delete(self, memory_id: str, *, wait: Optional[float]=None) -> DeleteResult: ...
```

## MemoryApi

Memory routes for one user (sync).

```py theme={null}
class MemoryApi(_FactsApi):
    ...
```

### MemoryApi.**init**

Initialize MemoryApi with the supplied configuration.

```py theme={null}
def __init__(self, owner: Any, user_id: str) -> None: ...
```

### MemoryApi.export

Collect every page or fail without a partial object; an erase during an export can end it early.

```py theme={null}
def export(self, *, page_size: int=100) -> MemoryExport: ...
```

### MemoryApi.export\_stream

Lazily iterate newest first, retaining one page.

```py theme={null}
def export_stream(self, *, page_size: int=100) -> Iterator[Memory]: ...
```

### MemoryApi.erase

Erase every fact for this user in this project: "erased" or "pending" (then result.resume()).

```py theme={null}
def erase(self, *, wait: Optional[float]=None) -> EraseResult: ...
```

## AsyncMemoryApi

Memory routes for one user (async).

```py theme={null}
class AsyncMemoryApi(_AsyncFactsApi):
    ...
```

### AsyncMemoryApi.**init**

Initialize AsyncMemoryApi with the supplied configuration.

```py theme={null}
def __init__(self, owner: Any, user_id: str) -> None: ...
```

### AsyncMemoryApi.export

Collect every page or fail without a partial object; an erase during an export can end it early.

```py theme={null}
async def export(self, *, page_size: int=100) -> MemoryExport: ...
```

### AsyncMemoryApi.export\_stream

Lazily iterate facts, retaining one page.

```py theme={null}
async def export_stream(self, *, page_size: int=100) -> AsyncIterator[Memory]: ...
```

### AsyncMemoryApi.erase

Erase every fact for this user in the current project. Pending results can be resumed.

```py theme={null}
async def erase(self, *, wait: Optional[float]=None) -> EraseResult: ...
```

## OwnerMemoryApi

Your own memory, for a "Me" key (sync): the memory the Atlaso plugins use.

Facts land in the key's project, or in your personal memory when the key has none. A delete is
a real forget everywhere. There is no erase: delete all of your memories on the dashboard.

```py theme={null}
class OwnerMemoryApi(_FactsApi):
    ...
```

### OwnerMemoryApi.**init**

Bind a server-key client without a user header.

```py theme={null}
def __init__(self, owner: Any) -> None: ...
```

## AsyncOwnerMemoryApi

Your own memory, for a "Me" key (async). There is no erase: use the dashboard.

```py theme={null}
class AsyncOwnerMemoryApi(_AsyncFactsApi):
    ...
```

### AsyncOwnerMemoryApi.**init**

Bind a server-key client without a user header.

```py theme={null}
def __init__(self, owner: Any) -> None: ...
```

## SharedApi

Project shared facts, available only from a server-key client.

```py theme={null}
class SharedApi:
    ...
```

### SharedApi.**init**

Bind a server-key client without a user header.

```py theme={null}
def __init__(self, owner: Any) -> None: ...
```

### SharedApi.add

Store one project fact with an automatic idempotency key, or the one you pass to resend an
uncertain add safely. An uncertain write is never retried automatically.

```py theme={null}
def add(self, text: str, *, idempotency_key: Optional[str]=None) -> SharedAddResult: ...
```

### SharedApi.list

Read newest-first shared facts, fetching pages lazily.

```py theme={null}
def list(self, *, limit: Optional[int]=None, after: Optional[str]=None) -> SharedList: ...
```

### SharedApi.delete

Delete one shared fact; resume a pending deletion.

```py theme={null}
def delete(self, memory_id: str, *, wait: Optional[float]=None) -> DeleteResult: ...
```

### SharedApi.delete\_all

Permanently delete every shared fact in this key's project.

```py theme={null}
def delete_all(self, *, wait: Optional[float]=None) -> EraseResult: ...
```

## AsyncSharedApi

Asynchronous project shared facts.

```py theme={null}
class AsyncSharedApi:
    ...
```

### AsyncSharedApi.**init**

Bind a server-key client without a user header.

```py theme={null}
def __init__(self, owner: Any) -> None: ...
```

### AsyncSharedApi.add

Store one project fact with an automatic idempotency key, or the one you pass to resend an
uncertain add safely. An uncertain write is never retried automatically.

```py theme={null}
async def add(self, text: str, *, idempotency_key: Optional[str]=None) -> SharedAddResult: ...
```

### AsyncSharedApi.list

Read newest-first shared facts, fetching pages lazily.

```py theme={null}
def list(self, *, limit: Optional[int]=None, after: Optional[str]=None) -> AsyncSharedList: ...
```

### AsyncSharedApi.delete

Delete one shared fact; resume a pending deletion.

```py theme={null}
async def delete(self, memory_id: str, *, wait: Optional[float]=None) -> DeleteResult: ...
```

### AsyncSharedApi.delete\_all

Permanently delete every shared fact in this key's project.

```py theme={null}
async def delete_all(self, *, wait: Optional[float]=None) -> EraseResult: ...
```

## CallCost

Provider list price; unknown and estimated costs remain explicit.

```py theme={null}
class CallCost(TypedDict):
    usd: Optional[str]
    basis: Literal['list_price']
    estimated: bool
    unpriced_reason: Optional[str]
```

## GatewayCall

Content-free call record. An interrupted call uses its last checkpoint.

An in\_progress row has not settled. Both states have estimated=True;
a late final receipt can replace them with the provider's actual usage.

```py theme={null}
class GatewayCall(TypedDict, total=False):
    id: str
    object: Literal['gateway.call']
    outcome: Literal['ok', 'provider_error', 'atlaso_error', 'client_abort', 'key_revoked', 'key_expired', 'in_progress', 'interrupted']
    estimated: bool
    cost: CallCost
    tokens: Dict[str, Optional[int]]
    cache: Dict[str, Optional[int]]
    memory: Dict[str, Any]
    learning: Optional[Dict[str, Any]]
    provider: str
    model: str
    model_served: Optional[str]
    created: int
    stream: bool
    http_status: Optional[int]
    error_class: Optional[str]
    tags: Dict[str, str]
    session_id: Optional[str]
    request_id: Optional[str]
```

## Calls

Call lookups with optional receipt-write polling.

```py theme={null}
class Calls:
    ...
```

### Calls.**init**

Bind call lookups to a client and optional user scope.

```py theme={null}
def __init__(self, owner: Any, user: Optional[str]=None) -> None: ...
```

### Calls.get

Get a call; poll call\_not\_ready and in\_progress for at most wait seconds.

```py theme={null}
def get(self, call_id: str, *, wait: float=0) -> GatewayCall: ...
```

## AsyncCalls

Async call lookups.

```py theme={null}
class AsyncCalls:
    ...
```

### AsyncCalls.**init**

Bind asynchronous call lookups to a client and optional user scope.

```py theme={null}
def __init__(self, owner: Any, user: Optional[str]=None) -> None: ...
```

### AsyncCalls.get

Get a call; poll call\_not\_ready and in\_progress for at most wait seconds.

```py theme={null}
async def get(self, call_id: str, *, wait: float=0) -> GatewayCall: ...
```

## Usage

Lazy app-user cost pages.

```py theme={null}
class Usage:
    ...
```

### Usage.**init**

Bind usage reads to a client and optional app user.

```py theme={null}
def __init__(self, owner: Any, user: Optional[str]=None) -> None: ...
```

### Usage.app\_users

Yield rows with app\_user\_label, calls, cost\_usd (string or null),
cost\_complete (bool), unpriced\_calls and refused\_calls in a UTC window.
A false cost\_complete means the monthly total is not final.

```py theme={null}
def app_users(self, *, start: Optional[str]=None, end: Optional[str]=None, limit: Optional[int]=None) -> Iterator[Dict[str, Any]]: ...
```

### Usage.get

Return one scoped user's usage row, or None when absent.

```py theme={null}
def get(self, *, start: Optional[str]=None, end: Optional[str]=None) -> Optional[Dict[str, Any]]: ...
```

## AsyncUsage

Async lazy app-user cost pages.

```py theme={null}
class AsyncUsage:
    ...
```

### AsyncUsage.**init**

Bind asynchronous usage reads to a client and optional app user.

```py theme={null}
def __init__(self, owner: Any, user: Optional[str]=None) -> None: ...
```

### AsyncUsage.app\_users

Yield rows with app\_user\_label, calls, cost\_usd (string or null),
cost\_complete (bool), unpriced\_calls and refused\_calls in a UTC window.
A false cost\_complete means the monthly total is not final.

```py theme={null}
async def app_users(self, *, start: Optional[str]=None, end: Optional[str]=None, limit: Optional[int]=None) -> AsyncIterator[Dict[str, Any]]: ...
```

### AsyncUsage.get

Return one scoped user's usage row, or None when absent.

```py theme={null}
async def get(self, *, start: Optional[str]=None, end: Optional[str]=None) -> Optional[Dict[str, Any]]: ...
```

## MemoryReceipt

Memory activity reported by the gateway for this model request.

```py theme={null}
class MemoryReceipt:
    status: str
    memory_ids: List[str]
    memories_in_prompt: Optional[int]
    gateway_overhead_ms: Optional[float]
    reason: Optional[str]
    action: str
    shared_ids: List[str] = field(default_factory=list)
```

### MemoryReceipt.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## Cost

Known decimal cost or an explicit pending or unknown state.

```py theme={null}
class Cost:
    state: str
    usd: Optional[str] = None
    estimated: Optional[bool] = None
    why: Optional[str] = None
```

### Cost.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## CacheInfo

Reported cache read and write counts; missing counts are None.

```py theme={null}
class CacheInfo:
    read: Optional[float] = None
    write: Optional[float] = None
```

### CacheInfo.to\_dict

Return a JSON-ready projection using the shared wire-contract field names.

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## Receipt

Per-call metadata. Raw gateway metadata and remote error text are untrusted.

```py theme={null}
class Receipt:
    kind: str
    request_id: Optional[str]
    call_id: Optional[str]
    provider_host: Optional[str]
    model: Optional[str]
    memory: Optional[MemoryReceipt]
    cost: Cost
    cache: CacheInfo
    ignored_params: List[str]
    tags_dropped: List[str]
    reason: Optional[str]
    stream_state: str
    error: Optional[ErrorInfo]
    raw_headers: Dict[str, str]
    raw_atlaso: Any = None
```

### Receipt.to\_dict

Canonical camelCase JSON projection (contracts/receipt.schema.json).

```py theme={null}
def to_dict(self) -> Dict[str, Any]: ...
```

## Tracked

A tracked sync call: `.data` (the provider result), `.stream` (streams only), `.receipt`.

For a stream, `.receipt` is a live snapshot: memory from headers at once, cost
pending; after the loop ends for any reason it is final and `.finished` is True.
Iterating `.data` directly instead of `.stream` bypasses tracking.

```py theme={null}
class Tracked:
    ...
```

### Tracked.**init**

Initialize Tracked with the supplied configuration.

```py theme={null}
def __init__(self, data: Any, tracker: _Tracker, stream: Optional[_TrackedStreamIterable]) -> None: ...
```

### Tracked.receipt

Read an independent snapshot of this call's current receipt.

```py theme={null}
@property
def receipt(self) -> Receipt: ...
```

### Tracked.finished

Whether receipt tracking has reached a final state.

```py theme={null}
@property
def finished(self) -> bool: ...
```

### Tracked.close

Stop a stream you will not finish reading; closes the connection. Returns the final receipt.

```py theme={null}
def close(self) -> Receipt: ...
```

## AsyncTracked

A tracked async call. `await t.done()` resolves when the stream ends for any reason; it never raises.

```py theme={null}
class AsyncTracked:
    ...
```

### AsyncTracked.**init**

Initialize AsyncTracked with the supplied configuration.

```py theme={null}
def __init__(self, data: Any, tracker: _Tracker, make_stream: Any) -> None: ...
```

### AsyncTracked.receipt

Read an independent snapshot of this call's current receipt.

```py theme={null}
@property
def receipt(self) -> Receipt: ...
```

### AsyncTracked.finished

Whether receipt tracking has reached a final state.

```py theme={null}
@property
def finished(self) -> bool: ...
```

### AsyncTracked.done

Wait for a final receipt. This observer does not consume the stream and never raises.

```py theme={null}
async def done(self) -> Receipt: ...
```

### AsyncTracked.aclose

Stop a stream you will not finish reading; closes the connection.

```py theme={null}
async def aclose(self) -> Receipt: ...
```

## ProviderRouting

The gateway's `provider` request field, with its wire names.

```py theme={null}
class ProviderRouting(TypedDict, total=False):
    order: List[str]
    only: List[str]
    ignore: List[str]
    allow_fallbacks: bool
```

## RoutingBody

What `routing()` returns: `&#123;"provider": &#123;...&#125;&#125;`, or `&#123;&#125;` when no option was set.

```py theme={null}
class RoutingBody(TypedDict, total=False):
    provider: ProviderRouting
```

## routing

Build the gateway's `provider` field for `extra_body=`::

client.chat.completions.create(model=..., messages=...,
extra\_body=routing(order=\["anthropic", "bedrock"]))

order: try these providers first, in this order. only: use only these providers.
ignore: never use these providers. allow\_fallbacks: False = if the provider the gateway
picked fails, fail the call instead of trying a backup.

Checked here, before anything is sent: a non-boolean `allow_fallbacks` and lists that are
not lists of distinct, non-empty names raise `InvalidRequestError` (code `invalid_routing`).
An unknown keyword is a TypeError. Options left as None are not sent; with none set this
returns `&#123;&#125;`, which adds nothing.

```py theme={null}
def routing(*, order: Optional[Sequence[ProviderName]]=None, only: Optional[Sequence[ProviderName]]=None, ignore: Optional[Sequence[ProviderName]]=None, allow_fallbacks: Optional[bool]=None) -> RoutingBody: ...
```

## answered\_by

The provider that answered a call, as a name `routing()` accepts (such as "bedrock"),
read from the receipt's model id; None when no provider answered. `receipt.provider_host` is
the host name of the server that answered::

backup = answered\_by(tracked.receipt) != "anthropic"

```py theme={null}
def answered_by(receipt: object) -> Optional[str]: ...
```

## Shared user scope methods

Shared per-request headers and provider binding inherited by user scopes.

```py theme={null}
class _ScopeBase:
    ...
```

### Shared user scope methods.**init**

Initialize \_ScopeBase with the supplied configuration.

```py theme={null}
def __init__(self, owner: Any, user_id: str, *, memory: Optional[str]=None, tags: Optional[Mapping[str, str]]=None, session_id: Optional[str]=None) -> None: ...
```

### Shared user scope methods.headers

Per-call headers for frameworks: pass as extra\_headers on each call.

```py theme={null}
def headers(self) -> Mapping[str, str]: ...
```

### Shared user scope methods.client

A cheap copy of your provider client with this user attached. Make one per request.

```py theme={null}
def client(self, openai_client: T) -> T: ...
```

## UserScope

One user in the current project, with synchronous memory operations and tools.

```py theme={null}
class UserScope(_ScopeBase):
    ...
```

### UserScope.**init**

Initialize UserScope with the supplied configuration.

```py theme={null}
def __init__(self, owner: Any, user_id: str, **kw: Any) -> None: ...
```

### UserScope.openai

This user's copy of the shared OpenAI client that this object builds on first use.

```py theme={null}
def openai(self) -> 'OpenAI': ...
```

With your own OpenAI client: the same as client(openai\_client).

```py theme={null}
def openai(self, openai_client: T) -> T: ...
```

This user's copy of the shared OpenAI client: `user.openai().chat.completions.create(...)`.

With no argument it uses one user-free OpenAI client that this Atlaso object builds on first
use (needs `pip install openai`). Pass your own client to use it instead, like client().

```py theme={null}
def openai(self, openai_client: Any=None) -> Any: ...
```

### UserScope.anthropic

This user's copy of the shared Anthropic client that this object builds on first use.

```py theme={null}
def anthropic(self) -> 'Anthropic': ...
```

A guarded per-user copy of the Anthropic client you pass.

```py theme={null}
def anthropic(self, client: T) -> T: ...
```

This user's copy of the shared Anthropic client (needs `pip install anthropic`), or of the one you pass.

```py theme={null}
def anthropic(self, client: Any=None) -> Any: ...
```

### UserScope.create\_browser\_token

Mint a short-lived browser token for this scope's user.

```py theme={null}
def create_browser_token(self, *, ttl_seconds: Optional[int]=None, limits: Optional[Union[BrowserTokenLimits, Mapping[str, Any]]]=None) -> BrowserToken: ...
```

### UserScope.revoke\_browser\_tokens

Revoke every active browser token for this scope's user.

```py theme={null}
def revoke_browser_tokens(self) -> BrowserTokensRevoke: ...
```

## AsyncUserScope

One user in the current project, with asynchronous memory operations and tools.

```py theme={null}
class AsyncUserScope(_ScopeBase):
    ...
```

### AsyncUserScope.**init**

Initialize AsyncUserScope with the supplied configuration.

```py theme={null}
def __init__(self, owner: Any, user_id: str, **kw: Any) -> None: ...
```

### AsyncUserScope.openai

This user's copy of the shared AsyncOpenAI client that this object builds on first use.

```py theme={null}
def openai(self) -> 'AsyncOpenAI': ...
```

With your own AsyncOpenAI client: the same as client(openai\_client).

```py theme={null}
def openai(self, openai_client: T) -> T: ...
```

This user's copy of the shared AsyncOpenAI client: `user.openai().chat.completions.create(...)`.

With no argument it uses one user-free AsyncOpenAI client that this AsyncAtlaso object builds on first
use (needs `pip install openai`). Pass your own client to use it instead, like client().

```py theme={null}
def openai(self, openai_client: Any=None) -> Any: ...
```

### AsyncUserScope.anthropic

This user's copy of the shared AsyncAnthropic client that this object builds on first use.

```py theme={null}
def anthropic(self) -> 'AsyncAnthropic': ...
```

A guarded per-user copy of the AsyncAnthropic client you pass.

```py theme={null}
def anthropic(self, client: T) -> T: ...
```

This user's copy of the shared AsyncAnthropic client (needs `pip install anthropic`), or of the one you pass.

```py theme={null}
def anthropic(self, client: Any=None) -> Any: ...
```

### AsyncUserScope.create\_browser\_token

Mint a short-lived browser token for this scope's user.

```py theme={null}
async def create_browser_token(self, *, ttl_seconds: Optional[int]=None, limits: Optional[Union[BrowserTokenLimits, Mapping[str, Any]]]=None) -> BrowserToken: ...
```

### AsyncUserScope.revoke\_browser\_tokens

Revoke every active browser token for this scope's user.

```py theme={null}
async def revoke_browser_tokens(self) -> BrowserTokensRevoke: ...
```

## BrowserTokenLimits

Optional browser-token restrictions, using the gateway's wire field names.

Model names suggest this release's catalog and accept future strings.
The gateway, not this type, enforces the requested restrictions.

```py theme={null}
class BrowserTokenLimits(TypedDict, total=False):
    models: List[ModelName]
    daily_spend_usd: Optional[str]
    memory: Literal['read_only', 'read_write', 'off']
```

## BrowserToken

Short-lived bearer returned by the gateway. Keep `token` on the intended device only.

```py theme={null}
class BrowserToken:
    id: str
    token: str = field(repr=False)
    expires_in: int
    expires_at: int
```

## BrowserTokenRevoke

Result of revoking one public token id.

```py theme={null}
class BrowserTokenRevoke:
    id: str
    revoked: bool
```

## BrowserTokensRevoke

Result of revoking all tokens for one app user.

```py theme={null}
class BrowserTokensRevoke:
    revoked: int
```

## Shared tool methods

Shared configuration and methods inherited by the public adapters.

```py theme={null}
class _Base:
    ...
```

### Shared tool methods.**init**

Initialize \_Base with the supplied configuration.

```py theme={null}
def __init__(self, memory: Any, allow_forget: bool, receipt: Any) -> None: ...
```

## OpenAITools

`definitions` for the provider SDK's `tools=`; `run(call)` inside your own loop returns a string.

```py theme={null}
class OpenAITools(_Base):
    ...
```

### OpenAITools.**init**

Initialize OpenAITools with the supplied configuration.

```py theme={null}
def __init__(self, memory: Any, allow_forget: bool=False, format: str='chat', receipt: Any=None) -> None: ...
```

### OpenAITools.run

Validate and execute a model function call using this user's memory tools.

```py theme={null}
def run(self, call: Any) -> str: ...
```

## AsyncOpenAITools

Async function-tool definitions and execution bound to one user.

```py theme={null}
class AsyncOpenAITools(_Base):
    ...
```

### AsyncOpenAITools.**init**

Initialize AsyncOpenAITools with the supplied configuration.

```py theme={null}
def __init__(self, memory: Any, allow_forget: bool=False, format: str='chat', receipt: Any=None) -> None: ...
```

### AsyncOpenAITools.run

Validate and execute a model function call using this user's memory tools.

```py theme={null}
async def run(self, call: Any) -> str: ...
```

## MemoryTools

Synchronous memory tools bound to this user's memory API.

```py theme={null}
class MemoryTools:
    ...
```

### MemoryTools.**init**

Initialize MemoryTools with the supplied configuration.

```py theme={null}
def __init__(self, memory: Any) -> None: ...
```

### MemoryTools.for\_openai

Build function definitions and a scoped executor for OpenAI tool calls.

```py theme={null}
def for_openai(self, *, allow_forget: bool=False, format: str='chat', receipt: Any=None) -> OpenAITools: ...
```

### MemoryTools.functions

Plain typed functions with docstrings, for agent frameworks that wrap functions as tools.

```py theme={null}
def functions(self, *, allow_forget: bool=False, receipt: Any=None) -> List[Callable[..., str]]: ...
```

## AsyncMemoryTools

Asynchronous memory tools bound to this user's memory API.

```py theme={null}
class AsyncMemoryTools:
    ...
```

### AsyncMemoryTools.**init**

Initialize AsyncMemoryTools with the supplied configuration.

```py theme={null}
def __init__(self, memory: Any) -> None: ...
```

### AsyncMemoryTools.for\_openai

Build function definitions and a scoped executor for OpenAI tool calls.

```py theme={null}
def for_openai(self, *, allow_forget: bool=False, format: str='chat', receipt: Any=None) -> AsyncOpenAITools: ...
```

### AsyncMemoryTools.functions

Return the scoped asynchronous function-tool adapter.

```py theme={null}
def functions(self, *, allow_forget: bool=False, receipt: Any=None) -> List[Callable[..., Any]]: ...
```

## FakeGateway

Use httpx\_client() or async\_httpx\_client(); neither opens a socket.

Options accept snake\_case, or the contract's camelCase via from\_contract().
Keys map synthetic tokens to project/keyScope/required/memory settings.
next() accepts either a scenario dict or keyword arguments. State changes
are serialized so the same fake is safe for threads and async clients.

```py theme={null}
class FakeGateway:
    ...
```

### FakeGateway.**init**

Initialize FakeGateway with the supplied configuration.

```py theme={null}
def __init__(self, *, users: Optional[Mapping[str, List[Any]]]=None, projects: Optional[Mapping[str, Mapping[str, List[Any]]]]=None, shared: Optional[Mapping[str, List[Any]]]=None, seed: int=7, base_url: str='https://gateway.invalid/v1', project: Optional[str]='p1', key_scope: str='per_user', required: bool=False, memory: str='use', keys: Optional[Mapping[str, Dict[str, Any]]]=None, scripts: Optional[List[Dict[str, Any]]]=None, cost_usd: str='0.000027') -> None: ...
```

### FakeGateway.from\_contract

Build a deterministic offline fake from a language-neutral contract fixture.

```py theme={null}
def from_contract(cls, options: Mapping[str, Any]) -> 'FakeGateway': ...
```

### FakeGateway.next

Queue a synthetic reply or fault; returns this fake for chaining.

```py theme={null}
def next(self, scenario: Optional[Mapping[str, Any]]=None, **kwargs: Any) -> 'FakeGateway': ...
```

### FakeGateway.users

Return a copied snapshot of the default project's synthetic users.

```py theme={null}
@property
def users(self) -> Dict[str, List[_Fact]]: ...
```

### FakeGateway.snapshot

Copy all synthetic user stores in one project.

```py theme={null}
def snapshot(self, project: str='p1') -> Dict[str, List[_Fact]]: ...
```

### FakeGateway.owner

Copy a "Me" key's own facts: a project's, or the personal ones (project None).

```py theme={null}
def owner(self, project: Optional[str]='p1') -> List[_Fact]: ...
```

### FakeGateway.shared

Copy a project's shared facts.

```py theme={null}
def shared(self, project: str='p1') -> List[_Fact]: ...
```

### FakeGateway.httpx\_client

Build a synchronous HTTP client backed by this offline fake.

```py theme={null}
def httpx_client(self, **kwargs: Any) -> httpx.Client: ...
```

### FakeGateway.async\_httpx\_client

Build an asynchronous HTTP client backed by this offline fake.

```py theme={null}
def async_httpx_client(self, **kwargs: Any) -> httpx.AsyncClient: ...
```

### FakeGateway.handle\_request

Handle a synthetic HTTP request without network access.

```py theme={null}
def handle_request(self, request: httpx.Request) -> httpx.Response: ...
```

## Constants and result aliases

These aliases narrow on the `outcome` field; version metadata comes from the package.

```py theme={null}
DEFAULT_BASE_URL = 'https://api.atlaso.ai/v1'
AddResult = Union[AddedResult, AddUnknownResult, AddRejectedResult]
DeleteResult = Union[DeletedResult, AlreadyGoneResult, DeletePendingResult]
EraseResult = Union[ErasedResult, ErasePendingResult]
__version__ = '0.1.1'
ProviderName = Union[KnownProviderName, str]
KnownProviderName = Literal['anthropic', 'azure', 'baseten', 'bedrock', 'coreweave', 'digitalocean', 'fireworks', 'google', 'groq', 'minimax', 'novita', 'openai', 'qwen', 'siliconflow', 'together', 'vertex', 'xai', 'zai']
KNOWN_PROVIDER_NAMES: Tuple[str, ...] = ('anthropic', 'azure', 'baseten', 'bedrock', 'coreweave', 'digitalocean', 'fireworks', 'google', 'groq', 'minimax', 'novita', 'openai', 'qwen', 'siliconflow', 'together', 'vertex', 'xai', 'zai')
KnownModelName = Literal['anthropic/claude-fable-5', 'anthropic/claude-fable-5.1', 'anthropic/claude-fable-5.2', 'anthropic/claude-haiku-4.5', 'anthropic/claude-haiku-5.5', 'anthropic/claude-mythos-5', 'anthropic/claude-mythos-5.1', 'anthropic/claude-mythos-5.2', 'anthropic/claude-mythos-preview', 'anthropic/claude-opus-4.5', 'anthropic/claude-opus-4.6', 'anthropic/claude-opus-4.7', 'anthropic/claude-opus-4.8', 'anthropic/claude-opus-5', 'anthropic/claude-opus-5.5', 'anthropic/claude-sonnet-4.5', 'anthropic/claude-sonnet-4.6', 'anthropic/claude-sonnet-5', 'anthropic/claude-sonnet-5.5', 'azure/chat-latest', 'azure/claude-fable-5', 'azure/claude-fable-5.1', 'azure/claude-fable-5.2', 'azure/claude-haiku-4.5', 'azure/claude-haiku-5.5', 'azure/claude-opus-4.5', 'azure/claude-opus-4.6', 'azure/claude-opus-4.7', 'azure/claude-opus-4.8', 'azure/claude-opus-5', 'azure/claude-opus-5.5', 'azure/claude-sonnet-4.6', 'azure/claude-sonnet-5', 'azure/claude-sonnet-5.5', 'azure/codestral-2501', 'azure/cohere-command-a', 'azure/deepseek-v3.2', 'azure/deepseek-v3.2-speciale', 'azure/deepseek-v4-flash', 'azure/deepseek-v4-pro', 'azure/deepseek-v4.1-flash', 'azure/gpt-4o', 'azure/gpt-5', 'azure/gpt-5-mini', 'azure/gpt-5-nano', 'azure/gpt-5.1', 'azure/gpt-5.2', 'azure/gpt-5.4', 'azure/gpt-5.4-mini', 'azure/gpt-5.4-nano', 'azure/gpt-5.5', 'azure/gpt-5.6-luna', 'azure/gpt-5.6-sol', 'azure/gpt-5.6-terra', 'azure/gpt-6-astra', 'azure/gpt-6-luna', 'azure/gpt-6-sol', 'azure/gpt-6.1-sol', 'azure/gpt-6.1-terra', 'azure/gpt-oss-120b', 'azure/grok-4', 'azure/grok-4.1-fast-non-reasoning', 'azure/grok-4.1-fast-reasoning', 'azure/grok-4.3', 'azure/grok-4.6', 'azure/grok-4.7', 'azure/grok-code-fast-1', 'azure/kimi-k2.5', 'azure/kimi-k2.6', 'azure/kimi-k2.7-code', 'azure/llama-3.3-70b-instruct', 'azure/mai-thinking-1', 'azure/mistral-large-3', 'azure/mistral-medium-3-5', 'azure/phi-4', 'azure/phi-4-mini-instruct', 'azure/phi-4-mini-reasoning', 'azure/phi-4-multimodal-instruct', 'azure/phi-4-reasoning', 'baseten/beam-1.0', 'baseten/deepseek-v4-flash-0731', 'baseten/deepseek-v4-pro-0813', 'baseten/deepseek-v4.1-flash', 'baseten/deepseek-v4.1-flash-1017', 'baseten/deepseek-v4.1-flash-1017-fast', 'baseten/deepseek-v4.1-flash-fast', 'baseten/glm-5.2', 'baseten/glm-5.2-fast', 'baseten/glm-5.3', 'baseten/glm-5.3-fast', 'baseten/glm-5.3-flash', 'baseten/gpt-oss-120b', 'baseten/kimi-k3', 'baseten/kimi-k3.1-pro', 'baseten/muse-spark-open', 'baseten/nvidia-nemotron-3-ultra-550b-a55b', 'baseten/nvidia-nemotron-3.5-super-vl-120b-a12b', 'bedrock/claude-fable-5', 'bedrock/claude-fable-5.1', 'bedrock/claude-fable-5.2', 'bedrock/claude-haiku-4.5', 'bedrock/claude-haiku-5.5', 'bedrock/claude-mythos-5', 'bedrock/claude-mythos-5.1', 'bedrock/claude-mythos-5.2', 'bedrock/claude-opus-4.1', 'bedrock/claude-opus-4.5', 'bedrock/claude-opus-4.6', 'bedrock/claude-opus-4.7', 'bedrock/claude-opus-4.8', 'bedrock/claude-opus-5', 'bedrock/claude-opus-5.5', 'bedrock/claude-sonnet-4.5', 'bedrock/claude-sonnet-4.6', 'bedrock/claude-sonnet-5', 'bedrock/claude-sonnet-5.5', 'bedrock/deepseek-r1', 'bedrock/deepseek-v3.1', 'bedrock/deepseek-v3.2', 'bedrock/devstral-2-123b', 'bedrock/gemma-3-12b-it', 'bedrock/gemma-3-27b-it', 'bedrock/gemma-3-4b-it', 'bedrock/gemma-4-26b-a4b-it', 'bedrock/gemma-4-31b', 'bedrock/gemma-4-e2b', 'bedrock/glm-4.7', 'bedrock/glm-4.7-flash', 'bedrock/glm-5', 'bedrock/glm-5.3', 'bedrock/gpt-5.4', 'bedrock/gpt-5.5', 'bedrock/gpt-5.6-cyber', 'bedrock/gpt-5.6-luna', 'bedrock/gpt-5.6-sol', 'bedrock/gpt-5.6-terra', 'bedrock/gpt-6-astra', 'bedrock/gpt-6-luna', 'bedrock/gpt-6-sol', 'bedrock/gpt-6.1-sol', 'bedrock/gpt-6.1-terra', 'bedrock/gpt-6.2-astra', 'bedrock/gpt-6.2-sol', 'bedrock/gpt-daybreak-blue-5.6-sol', 'bedrock/gpt-oss-120b', 'bedrock/gpt-oss-20b', 'bedrock/gpt-oss-safeguard-120b', 'bedrock/gpt-oss-safeguard-20b', 'bedrock/grok-4.3', 'bedrock/grok-4.6', 'bedrock/grok-4.7', 'bedrock/kimi-k2-thinking', 'bedrock/kimi-k2.5', 'bedrock/kimi-k3', 'bedrock/kimi-k3.1-pro-highspeed', 'bedrock/llama-3-70b-instruct', 'bedrock/llama-3-8b-instruct', 'bedrock/llama-3.1-70b-instruct', 'bedrock/llama-3.1-8b-instruct', 'bedrock/llama-3.3-70b-instruct', 'bedrock/llama-4-maverick-17b-instruct', 'bedrock/llama-4-scout-17b-instruct', 'bedrock/magistral-small-2509', 'bedrock/minimax-m2', 'bedrock/minimax-m2.1', 'bedrock/minimax-m2.5', 'bedrock/ministral-14b-2512', 'bedrock/ministral-3b-2512', 'bedrock/ministral-8b-2512', 'bedrock/mistral-7b-instruct-v0.2', 'bedrock/mistral-large-2402', 'bedrock/mistral-large-3', 'bedrock/mistral-small-2402', 'bedrock/mixtral-8x7b-instruct-v0.1', 'bedrock/nemotron-nano-12b-v2', 'bedrock/nemotron-nano-3-30b', 'bedrock/nemotron-nano-9b-v2', 'bedrock/nemotron-super-3-120b', 'bedrock/nova-2-lite', 'bedrock/nova-lite', 'bedrock/nova-micro', 'bedrock/nova-pro', 'bedrock/palmyra-vision-7b', 'bedrock/palmyra-x4', 'bedrock/palmyra-x5', 'bedrock/pixtral-large-2502', 'bedrock/qwen3-235b-a22b-instruct-2507', 'bedrock/qwen3-32b', 'bedrock/qwen3-coder-30b-a3b-instruct', 'bedrock/qwen3-coder-480b-a35b-instruct', 'bedrock/qwen3-coder-next', 'bedrock/qwen3-next-80b-a3b-instruct', 'bedrock/qwen3-vl-235b-a22b-instruct', 'bedrock/voxtral-mini-3b-2507', 'bedrock/voxtral-small-24b-2507', 'coreweave/beam-1.0-501b-a23b', 'digitalocean/deepseek-v4.1-flash', 'digitalocean/glm-5.2', 'digitalocean/glm-5.3', 'digitalocean/glm-5.3-flash', 'digitalocean/mimo-v2.5-pro', 'digitalocean/qwen3.8-max', 'fireworks/deepseek-v4.1-flash', 'fireworks/deepseek-v4.1-flash-1017', 'fireworks/ember-1', 'fireworks/glm-5.3', 'fireworks/glm-5.3-flash', 'fireworks/gpt-oss-120b', 'fireworks/inkling', 'fireworks/kimi-k3', 'fireworks/kimi-k3.1-pro', 'fireworks/minimax-m3', 'fireworks/minimax-m3.1-flash', 'fireworks/muse-spark-open', 'fireworks/nemotron-3-ultra-550b-a55b', 'fireworks/nemotron-lightning-3.5-30b-a3b', 'fireworks/qwen3.8-max', 'fireworks/ultramarine-1-flash', 'google/gemini-3-flash-preview', 'google/gemini-3.1-flash-lite', 'google/gemini-3.1-pro-preview', 'google/gemini-3.1-pro-preview-customtools', 'google/gemini-3.5-flash-lite', 'google/gemini-3.6-flash', 'google/gemini-3.8-flash', 'google/gemini-4-argon', 'groq/gpt-oss-120b', 'groq/gpt-oss-20b', 'groq/gpt-oss-safeguard-20b', 'groq/llama-prompt-guard-2-22m', 'groq/llama-prompt-guard-2-86m', 'groq/qwen3.8-27b', 'minimax/minimax-m3', 'minimax/minimax-m3.1-flash', 'novita/apodex-1.1-mini', 'novita/autoglm-phone-9b-multilingual', 'novita/deepseek-ocr-2', 'novita/deepseek-r1-turbo', 'novita/deepseek-v4-flash-0731', 'novita/deepseek-v4-pro', 'novita/deepseek-v4-pro-0813', 'novita/deepseek-v4.1-flash', 'novita/deepseek-v4.1-flash-1017', 'novita/deepseek-v4.1-flash-dst', 'novita/deepseek_v3', 'novita/gemma-3-27b-it', 'novita/gemma-4-26b-a4b-it', 'novita/gemma-4-31b-it', 'novita/glm-4.5-air', 'novita/glm-4.5v', 'novita/glm-4.6', 'novita/glm-4.6v', 'novita/glm-4.7', 'novita/glm-4.7-flash', 'novita/glm-5', 'novita/glm-5.1', 'novita/glm-5.2', 'novita/glm-5.3', 'novita/glm-5.3-flash', 'novita/glm-5.3-flashx', 'novita/gpt-oss-120b', 'novita/hy3', 'novita/hy4', 'novita/hy4-preview', 'novita/kimi-k2-0905', 'novita/kimi-k2-instruct', 'novita/kimi-k2.5', 'novita/kimi-k2.6', 'novita/kimi-k2.7-code', 'novita/kimi-k3.1-pro', 'novita/kimi-k3.1-pro-highspeed', 'novita/l3-8b-stheno-v3.2', 'novita/ling-3.0-flash', 'novita/ling-3.1-flash', 'novita/llama-3.1-8b-instruct', 'novita/llama-4-maverick-17b-128e-instruct-fp8', 'novita/llama-4-scout-17b-16e-instruct', 'novita/macaron-v1-tall', 'novita/macaron-v1-venti', 'novita/mimo-v2.6-flash', 'novita/mimo-v2.6-pro', 'novita/minimax-m1-80k', 'novita/minimax-m2.5', 'novita/minimax-m2.7', 'novita/minimax-m2.7-highspeed', 'novita/minimax-m3.1-flash', 'novita/nemotron-3-nano-30b-a3b', 'novita/qwen-mt-plus', 'novita/qwen3-omni-30b-a3b-thinking', 'novita/qwen3-vl-30b-a3b-instruct', 'novita/qwen3.8-2.4t-a95b', 'novita/step-3.7-flash', 'novita/step-5-preview', 'novita/wizardlm-2-8x22b', 'openai/chat-latest', 'openai/gpt-4.1', 'openai/gpt-4.1-2025-04-14', 'openai/gpt-4.1-mini', 'openai/gpt-4.1-mini-2025-04-14', 'openai/gpt-4o', 'openai/gpt-4o-2024-08-06', 'openai/gpt-4o-2024-11-20', 'openai/gpt-4o-mini', 'openai/gpt-4o-mini-2024-07-18', 'openai/gpt-5', 'openai/gpt-5-2025-08-07', 'openai/gpt-5-mini', 'openai/gpt-5-mini-2025-08-07', 'openai/gpt-5-nano', 'openai/gpt-5-nano-2025-08-07', 'openai/gpt-5.1', 'openai/gpt-5.1-2025-11-13', 'openai/gpt-5.2', 'openai/gpt-5.2-2025-12-11', 'openai/gpt-5.4', 'openai/gpt-5.4-2026-03-05', 'openai/gpt-5.4-mini', 'openai/gpt-5.4-mini-2026-03-17', 'openai/gpt-5.4-nano', 'openai/gpt-5.4-nano-2026-03-17', 'openai/gpt-5.5', 'openai/gpt-5.5-2026-04-23', 'openai/gpt-5.6', 'openai/gpt-5.6-luna', 'openai/gpt-5.6-sol', 'openai/gpt-5.6-terra', 'openai/gpt-6-astra', 'openai/gpt-6-cyber', 'openai/gpt-6-luna', 'openai/gpt-6-sol', 'openai/gpt-6.1-sol', 'openai/gpt-6.1-terra', 'openai/gpt-6.2-astra', 'openai/gpt-6.2-sol', 'openai/o3', 'openai/o3-2025-04-16', 'qwen/deepseek-v4-pro', 'qwen/deepseek-v4-pro-0813', 'qwen/deepseek-v4.1-flash', 'qwen/deepseek-v4.1-flash-1017', 'qwen/glm-5.1', 'qwen/glm-5.2', 'qwen/glm-5.3', 'qwen/kimi-k2.5', 'qwen/kimi-k2.6', 'qwen/kimi-k2.7-code', 'qwen/kimi-k3', 'qwen/kimi-k3.1-pro', 'qwen/mindlab/macaron-v1-tall', 'qwen/mindlab/macaron-v1.1-coding-venti', 'qwen/mindlab/macaron-v1.1-venti', 'qwen/qwen-doc-turbo', 'qwen/qwen-flash', 'qwen/qwen-flash-2025-07-28', 'qwen/qwen-max', 'qwen/qwen-plus', 'qwen/qwen-plus-2025-01-25', 'qwen/qwen-plus-2025-04-28', 'qwen/qwen-plus-2025-07-14', 'qwen/qwen-plus-2025-12-01', 'qwen/qwen-plus-latest', 'qwen/qwen-vl-ocr', 'qwen/qwen-vl-ocr-2025-11-20', 'qwen/qwen3-coder-flash', 'qwen/qwen3-coder-flash-2025-07-28', 'qwen/qwen3-vl-plus', 'qwen/qwen3.5-122b-a10b', 'qwen/qwen3.5-27b', 'qwen/qwen3.5-35b-a3b', 'qwen/qwen3.5-flash', 'qwen/qwen3.5-flash-2026-02-23', 'qwen/qwen3.5-ocr', 'qwen/qwen3.6-27b', 'qwen/qwen3.6-35b-a3b', 'qwen/qwen3.6-flash', 'qwen/qwen3.6-flash-2026-04-16', 'qwen/qwen3.6-plus', 'qwen/qwen3.6-plus-2026-04-02', 'qwen/qwen3.7-flash', 'qwen/qwen3.7-flash-2026-07-15', 'qwen/qwen3.7-max', 'qwen/qwen3.7-max-2026-05-17', 'qwen/qwen3.7-max-2026-05-20', 'qwen/qwen3.7-max-2026-06-08', 'qwen/qwen3.7-max-preview', 'qwen/qwen3.7-plus', 'qwen/qwen3.7-plus-2026-05-26', 'qwen/qwen3.8-2.4t-a95b', 'qwen/qwen3.8-27b', 'qwen/qwen3.8-flash', 'qwen/qwen3.8-max', 'qwen/qwen3.8-max-0902', 'qwen/qwen3.8-omni-flash', 'qwen/qwen4-max', 'siliconflow/deepseek-r1', 'siliconflow/deepseek-v3', 'siliconflow/deepseek-v3.1', 'siliconflow/deepseek-v3.1-terminus', 'siliconflow/deepseek-v3.2', 'siliconflow/deepseek-v3.2-exp', 'siliconflow/deepseek-v4-flash', 'siliconflow/deepseek-v4-flash-0731', 'siliconflow/deepseek-v4-flash-vision-exp', 'siliconflow/deepseek-v4-pro', 'siliconflow/deepseek-v4-pro-0813', 'siliconflow/deepseek-v4.1-flash', 'siliconflow/gemma-4-26b-a4b-it', 'siliconflow/gemma-4-31b-it', 'siliconflow/glm-4.5-air', 'siliconflow/glm-5.1', 'siliconflow/glm-5.2', 'siliconflow/glm-5.3', 'siliconflow/glm-5.3-flash', 'siliconflow/glm-5v-turbo', 'siliconflow/gpt-oss-120b', 'siliconflow/gpt-oss-20b', 'siliconflow/hunyuan-a13b-instruct', 'siliconflow/hy3', 'siliconflow/hy4-preview', 'siliconflow/kimi-k2.6', 'siliconflow/kimi-k2.7-code', 'siliconflow/kimi-k3', 'siliconflow/ling-flash-2.0', 'siliconflow/longcat-2.0', 'siliconflow/minimax-m3', 'siliconflow/qwen2.5-72b-instruct', 'siliconflow/qwen2.5-7b-instruct', 'siliconflow/qwen3-14b', 'siliconflow/qwen3-30b-a3b-instruct-2507', 'siliconflow/qwen3-32b', 'siliconflow/qwen3-8b', 'siliconflow/qwen3-coder-30b-a3b-instruct', 'siliconflow/qwen3-vl-30b-a3b-instruct', 'siliconflow/qwen3-vl-30b-a3b-thinking', 'siliconflow/qwen3-vl-32b-instruct', 'siliconflow/qwen3-vl-32b-thinking', 'siliconflow/qwen3-vl-8b-instruct', 'siliconflow/qwen3.5-122b-a10b', 'siliconflow/qwen3.5-27b', 'siliconflow/qwen3.5-35b-a3b', 'siliconflow/qwen3.5-9b', 'siliconflow/qwen3.6-27b', 'siliconflow/qwen3.6-35b-a3b', 'siliconflow/qwen3.8-2.4t-a95b', 'siliconflow/seed-oss-36b-instruct', 'siliconflow/step-3.5-flash', 'together/beam-1.0-501b-a23b', 'together/deepseek-v4-pro-0813', 'together/deepseek-v4.1-flash', 'together/deepseek-v4.1-flash-1017', 'together/glm-5.2', 'together/glm-5.3', 'together/glm-5.3-flash', 'together/gpt-oss-120b', 'together/kimi-k3', 'together/kimi-k3.1-pro', 'together/minimax-m3.1-flash', 'together/muse-glimmer-30b', 'together/muse-spark-open', 'together/nvidia-nemotron-3.5-super-vl', 'together/qwen3.5-9b', 'together/qwen3.6-plus', 'together/qwen3.7-max', 'together/qwen3.7-plus', 'together/qwen3.8-flash', 'together/ternary-bonsai-27b', 'vertex/gemini-3.1-flash-lite', 'vertex/gemini-3.1-pro-preview', 'vertex/gemini-3.5-flash', 'vertex/gemini-3.5-flash-lite', 'vertex/gemini-3.6-flash', 'vertex/gemini-3.7-flash', 'vertex/gemini-3.8-flash', 'vertex/gemini-4-argon', 'vertex/gemini-robotics-er-2-preview', 'xai/grok-4.20-0309-non-reasoning', 'xai/grok-4.20-0309-reasoning', 'xai/grok-4.3', 'xai/grok-4.5', 'xai/grok-4.6', 'xai/grok-4.7', 'xai/grok-build-0.1', 'zai/glm-4-32b-0414-128k', 'zai/glm-4.5', 'zai/glm-4.5-air', 'zai/glm-4.5-airx', 'zai/glm-4.5-flash', 'zai/glm-4.5-x', 'zai/glm-4.5v', 'zai/glm-4.6', 'zai/glm-4.6v', 'zai/glm-4.6v-flashx', 'zai/glm-4.7', 'zai/glm-4.7-flash', 'zai/glm-4.7-flashx', 'zai/glm-5', 'zai/glm-5.1', 'zai/glm-5.2', 'zai/glm-5.3', 'zai/glm-5.3-flash', 'zai/glm-5.3-flashx', 'zai/glm-5.3-flashx-legal']
ModelName = Union[KnownModelName, str]
KNOWN_MODEL_NAMES: Tuple[KnownModelName, ...] = ('anthropic/claude-fable-5', 'anthropic/claude-fable-5.1', 'anthropic/claude-fable-5.2', 'anthropic/claude-haiku-4.5', 'anthropic/claude-haiku-5.5', 'anthropic/claude-mythos-5', 'anthropic/claude-mythos-5.1', 'anthropic/claude-mythos-5.2', 'anthropic/claude-mythos-preview', 'anthropic/claude-opus-4.5', 'anthropic/claude-opus-4.6', 'anthropic/claude-opus-4.7', 'anthropic/claude-opus-4.8', 'anthropic/claude-opus-5', 'anthropic/claude-opus-5.5', 'anthropic/claude-sonnet-4.5', 'anthropic/claude-sonnet-4.6', 'anthropic/claude-sonnet-5', 'anthropic/claude-sonnet-5.5', 'azure/chat-latest', 'azure/claude-fable-5', 'azure/claude-fable-5.1', 'azure/claude-fable-5.2', 'azure/claude-haiku-4.5', 'azure/claude-haiku-5.5', 'azure/claude-opus-4.5', 'azure/claude-opus-4.6', 'azure/claude-opus-4.7', 'azure/claude-opus-4.8', 'azure/claude-opus-5', 'azure/claude-opus-5.5', 'azure/claude-sonnet-4.6', 'azure/claude-sonnet-5', 'azure/claude-sonnet-5.5', 'azure/codestral-2501', 'azure/cohere-command-a', 'azure/deepseek-v3.2', 'azure/deepseek-v3.2-speciale', 'azure/deepseek-v4-flash', 'azure/deepseek-v4-pro', 'azure/deepseek-v4.1-flash', 'azure/gpt-4o', 'azure/gpt-5', 'azure/gpt-5-mini', 'azure/gpt-5-nano', 'azure/gpt-5.1', 'azure/gpt-5.2', 'azure/gpt-5.4', 'azure/gpt-5.4-mini', 'azure/gpt-5.4-nano', 'azure/gpt-5.5', 'azure/gpt-5.6-luna', 'azure/gpt-5.6-sol', 'azure/gpt-5.6-terra', 'azure/gpt-6-astra', 'azure/gpt-6-luna', 'azure/gpt-6-sol', 'azure/gpt-6.1-sol', 'azure/gpt-6.1-terra', 'azure/gpt-oss-120b', 'azure/grok-4', 'azure/grok-4.1-fast-non-reasoning', 'azure/grok-4.1-fast-reasoning', 'azure/grok-4.3', 'azure/grok-4.6', 'azure/grok-4.7', 'azure/grok-code-fast-1', 'azure/kimi-k2.5', 'azure/kimi-k2.6', 'azure/kimi-k2.7-code', 'azure/llama-3.3-70b-instruct', 'azure/mai-thinking-1', 'azure/mistral-large-3', 'azure/mistral-medium-3-5', 'azure/phi-4', 'azure/phi-4-mini-instruct', 'azure/phi-4-mini-reasoning', 'azure/phi-4-multimodal-instruct', 'azure/phi-4-reasoning', 'baseten/beam-1.0', 'baseten/deepseek-v4-flash-0731', 'baseten/deepseek-v4-pro-0813', 'baseten/deepseek-v4.1-flash', 'baseten/deepseek-v4.1-flash-1017', 'baseten/deepseek-v4.1-flash-1017-fast', 'baseten/deepseek-v4.1-flash-fast', 'baseten/glm-5.2', 'baseten/glm-5.2-fast', 'baseten/glm-5.3', 'baseten/glm-5.3-fast', 'baseten/glm-5.3-flash', 'baseten/gpt-oss-120b', 'baseten/kimi-k3', 'baseten/kimi-k3.1-pro', 'baseten/muse-spark-open', 'baseten/nvidia-nemotron-3-ultra-550b-a55b', 'baseten/nvidia-nemotron-3.5-super-vl-120b-a12b', 'bedrock/claude-fable-5', 'bedrock/claude-fable-5.1', 'bedrock/claude-fable-5.2', 'bedrock/claude-haiku-4.5', 'bedrock/claude-haiku-5.5', 'bedrock/claude-mythos-5', 'bedrock/claude-mythos-5.1', 'bedrock/claude-mythos-5.2', 'bedrock/claude-opus-4.1', 'bedrock/claude-opus-4.5', 'bedrock/claude-opus-4.6', 'bedrock/claude-opus-4.7', 'bedrock/claude-opus-4.8', 'bedrock/claude-opus-5', 'bedrock/claude-opus-5.5', 'bedrock/claude-sonnet-4.5', 'bedrock/claude-sonnet-4.6', 'bedrock/claude-sonnet-5', 'bedrock/claude-sonnet-5.5', 'bedrock/deepseek-r1', 'bedrock/deepseek-v3.1', 'bedrock/deepseek-v3.2', 'bedrock/devstral-2-123b', 'bedrock/gemma-3-12b-it', 'bedrock/gemma-3-27b-it', 'bedrock/gemma-3-4b-it', 'bedrock/gemma-4-26b-a4b-it', 'bedrock/gemma-4-31b', 'bedrock/gemma-4-e2b', 'bedrock/glm-4.7', 'bedrock/glm-4.7-flash', 'bedrock/glm-5', 'bedrock/glm-5.3', 'bedrock/gpt-5.4', 'bedrock/gpt-5.5', 'bedrock/gpt-5.6-cyber', 'bedrock/gpt-5.6-luna', 'bedrock/gpt-5.6-sol', 'bedrock/gpt-5.6-terra', 'bedrock/gpt-6-astra', 'bedrock/gpt-6-luna', 'bedrock/gpt-6-sol', 'bedrock/gpt-6.1-sol', 'bedrock/gpt-6.1-terra', 'bedrock/gpt-6.2-astra', 'bedrock/gpt-6.2-sol', 'bedrock/gpt-daybreak-blue-5.6-sol', 'bedrock/gpt-oss-120b', 'bedrock/gpt-oss-20b', 'bedrock/gpt-oss-safeguard-120b', 'bedrock/gpt-oss-safeguard-20b', 'bedrock/grok-4.3', 'bedrock/grok-4.6', 'bedrock/grok-4.7', 'bedrock/kimi-k2-thinking', 'bedrock/kimi-k2.5', 'bedrock/kimi-k3', 'bedrock/kimi-k3.1-pro-highspeed', 'bedrock/llama-3-70b-instruct', 'bedrock/llama-3-8b-instruct', 'bedrock/llama-3.1-70b-instruct', 'bedrock/llama-3.1-8b-instruct', 'bedrock/llama-3.3-70b-instruct', 'bedrock/llama-4-maverick-17b-instruct', 'bedrock/llama-4-scout-17b-instruct', 'bedrock/magistral-small-2509', 'bedrock/minimax-m2', 'bedrock/minimax-m2.1', 'bedrock/minimax-m2.5', 'bedrock/ministral-14b-2512', 'bedrock/ministral-3b-2512', 'bedrock/ministral-8b-2512', 'bedrock/mistral-7b-instruct-v0.2', 'bedrock/mistral-large-2402', 'bedrock/mistral-large-3', 'bedrock/mistral-small-2402', 'bedrock/mixtral-8x7b-instruct-v0.1', 'bedrock/nemotron-nano-12b-v2', 'bedrock/nemotron-nano-3-30b', 'bedrock/nemotron-nano-9b-v2', 'bedrock/nemotron-super-3-120b', 'bedrock/nova-2-lite', 'bedrock/nova-lite', 'bedrock/nova-micro', 'bedrock/nova-pro', 'bedrock/palmyra-vision-7b', 'bedrock/palmyra-x4', 'bedrock/palmyra-x5', 'bedrock/pixtral-large-2502', 'bedrock/qwen3-235b-a22b-instruct-2507', 'bedrock/qwen3-32b', 'bedrock/qwen3-coder-30b-a3b-instruct', 'bedrock/qwen3-coder-480b-a35b-instruct', 'bedrock/qwen3-coder-next', 'bedrock/qwen3-next-80b-a3b-instruct', 'bedrock/qwen3-vl-235b-a22b-instruct', 'bedrock/voxtral-mini-3b-2507', 'bedrock/voxtral-small-24b-2507', 'coreweave/beam-1.0-501b-a23b', 'digitalocean/deepseek-v4.1-flash', 'digitalocean/glm-5.2', 'digitalocean/glm-5.3', 'digitalocean/glm-5.3-flash', 'digitalocean/mimo-v2.5-pro', 'digitalocean/qwen3.8-max', 'fireworks/deepseek-v4.1-flash', 'fireworks/deepseek-v4.1-flash-1017', 'fireworks/ember-1', 'fireworks/glm-5.3', 'fireworks/glm-5.3-flash', 'fireworks/gpt-oss-120b', 'fireworks/inkling', 'fireworks/kimi-k3', 'fireworks/kimi-k3.1-pro', 'fireworks/minimax-m3', 'fireworks/minimax-m3.1-flash', 'fireworks/muse-spark-open', 'fireworks/nemotron-3-ultra-550b-a55b', 'fireworks/nemotron-lightning-3.5-30b-a3b', 'fireworks/qwen3.8-max', 'fireworks/ultramarine-1-flash', 'google/gemini-3-flash-preview', 'google/gemini-3.1-flash-lite', 'google/gemini-3.1-pro-preview', 'google/gemini-3.1-pro-preview-customtools', 'google/gemini-3.5-flash-lite', 'google/gemini-3.6-flash', 'google/gemini-3.8-flash', 'google/gemini-4-argon', 'groq/gpt-oss-120b', 'groq/gpt-oss-20b', 'groq/gpt-oss-safeguard-20b', 'groq/llama-prompt-guard-2-22m', 'groq/llama-prompt-guard-2-86m', 'groq/qwen3.8-27b', 'minimax/minimax-m3', 'minimax/minimax-m3.1-flash', 'novita/apodex-1.1-mini', 'novita/autoglm-phone-9b-multilingual', 'novita/deepseek-ocr-2', 'novita/deepseek-r1-turbo', 'novita/deepseek-v4-flash-0731', 'novita/deepseek-v4-pro', 'novita/deepseek-v4-pro-0813', 'novita/deepseek-v4.1-flash', 'novita/deepseek-v4.1-flash-1017', 'novita/deepseek-v4.1-flash-dst', 'novita/deepseek_v3', 'novita/gemma-3-27b-it', 'novita/gemma-4-26b-a4b-it', 'novita/gemma-4-31b-it', 'novita/glm-4.5-air', 'novita/glm-4.5v', 'novita/glm-4.6', 'novita/glm-4.6v', 'novita/glm-4.7', 'novita/glm-4.7-flash', 'novita/glm-5', 'novita/glm-5.1', 'novita/glm-5.2', 'novita/glm-5.3', 'novita/glm-5.3-flash', 'novita/glm-5.3-flashx', 'novita/gpt-oss-120b', 'novita/hy3', 'novita/hy4', 'novita/hy4-preview', 'novita/kimi-k2-0905', 'novita/kimi-k2-instruct', 'novita/kimi-k2.5', 'novita/kimi-k2.6', 'novita/kimi-k2.7-code', 'novita/kimi-k3.1-pro', 'novita/kimi-k3.1-pro-highspeed', 'novita/l3-8b-stheno-v3.2', 'novita/ling-3.0-flash', 'novita/ling-3.1-flash', 'novita/llama-3.1-8b-instruct', 'novita/llama-4-maverick-17b-128e-instruct-fp8', 'novita/llama-4-scout-17b-16e-instruct', 'novita/macaron-v1-tall', 'novita/macaron-v1-venti', 'novita/mimo-v2.6-flash', 'novita/mimo-v2.6-pro', 'novita/minimax-m1-80k', 'novita/minimax-m2.5', 'novita/minimax-m2.7', 'novita/minimax-m2.7-highspeed', 'novita/minimax-m3.1-flash', 'novita/nemotron-3-nano-30b-a3b', 'novita/qwen-mt-plus', 'novita/qwen3-omni-30b-a3b-thinking', 'novita/qwen3-vl-30b-a3b-instruct', 'novita/qwen3.8-2.4t-a95b', 'novita/step-3.7-flash', 'novita/step-5-preview', 'novita/wizardlm-2-8x22b', 'openai/chat-latest', 'openai/gpt-4.1', 'openai/gpt-4.1-2025-04-14', 'openai/gpt-4.1-mini', 'openai/gpt-4.1-mini-2025-04-14', 'openai/gpt-4o', 'openai/gpt-4o-2024-08-06', 'openai/gpt-4o-2024-11-20', 'openai/gpt-4o-mini', 'openai/gpt-4o-mini-2024-07-18', 'openai/gpt-5', 'openai/gpt-5-2025-08-07', 'openai/gpt-5-mini', 'openai/gpt-5-mini-2025-08-07', 'openai/gpt-5-nano', 'openai/gpt-5-nano-2025-08-07', 'openai/gpt-5.1', 'openai/gpt-5.1-2025-11-13', 'openai/gpt-5.2', 'openai/gpt-5.2-2025-12-11', 'openai/gpt-5.4', 'openai/gpt-5.4-2026-03-05', 'openai/gpt-5.4-mini', 'openai/gpt-5.4-mini-2026-03-17', 'openai/gpt-5.4-nano', 'openai/gpt-5.4-nano-2026-03-17', 'openai/gpt-5.5', 'openai/gpt-5.5-2026-04-23', 'openai/gpt-5.6', 'openai/gpt-5.6-luna', 'openai/gpt-5.6-sol', 'openai/gpt-5.6-terra', 'openai/gpt-6-astra', 'openai/gpt-6-cyber', 'openai/gpt-6-luna', 'openai/gpt-6-sol', 'openai/gpt-6.1-sol', 'openai/gpt-6.1-terra', 'openai/gpt-6.2-astra', 'openai/gpt-6.2-sol', 'openai/o3', 'openai/o3-2025-04-16', 'qwen/deepseek-v4-pro', 'qwen/deepseek-v4-pro-0813', 'qwen/deepseek-v4.1-flash', 'qwen/deepseek-v4.1-flash-1017', 'qwen/glm-5.1', 'qwen/glm-5.2', 'qwen/glm-5.3', 'qwen/kimi-k2.5', 'qwen/kimi-k2.6', 'qwen/kimi-k2.7-code', 'qwen/kimi-k3', 'qwen/kimi-k3.1-pro', 'qwen/mindlab/macaron-v1-tall', 'qwen/mindlab/macaron-v1.1-coding-venti', 'qwen/mindlab/macaron-v1.1-venti', 'qwen/qwen-doc-turbo', 'qwen/qwen-flash', 'qwen/qwen-flash-2025-07-28', 'qwen/qwen-max', 'qwen/qwen-plus', 'qwen/qwen-plus-2025-01-25', 'qwen/qwen-plus-2025-04-28', 'qwen/qwen-plus-2025-07-14', 'qwen/qwen-plus-2025-12-01', 'qwen/qwen-plus-latest', 'qwen/qwen-vl-ocr', 'qwen/qwen-vl-ocr-2025-11-20', 'qwen/qwen3-coder-flash', 'qwen/qwen3-coder-flash-2025-07-28', 'qwen/qwen3-vl-plus', 'qwen/qwen3.5-122b-a10b', 'qwen/qwen3.5-27b', 'qwen/qwen3.5-35b-a3b', 'qwen/qwen3.5-flash', 'qwen/qwen3.5-flash-2026-02-23', 'qwen/qwen3.5-ocr', 'qwen/qwen3.6-27b', 'qwen/qwen3.6-35b-a3b', 'qwen/qwen3.6-flash', 'qwen/qwen3.6-flash-2026-04-16', 'qwen/qwen3.6-plus', 'qwen/qwen3.6-plus-2026-04-02', 'qwen/qwen3.7-flash', 'qwen/qwen3.7-flash-2026-07-15', 'qwen/qwen3.7-max', 'qwen/qwen3.7-max-2026-05-17', 'qwen/qwen3.7-max-2026-05-20', 'qwen/qwen3.7-max-2026-06-08', 'qwen/qwen3.7-max-preview', 'qwen/qwen3.7-plus', 'qwen/qwen3.7-plus-2026-05-26', 'qwen/qwen3.8-2.4t-a95b', 'qwen/qwen3.8-27b', 'qwen/qwen3.8-flash', 'qwen/qwen3.8-max', 'qwen/qwen3.8-max-0902', 'qwen/qwen3.8-omni-flash', 'qwen/qwen4-max', 'siliconflow/deepseek-r1', 'siliconflow/deepseek-v3', 'siliconflow/deepseek-v3.1', 'siliconflow/deepseek-v3.1-terminus', 'siliconflow/deepseek-v3.2', 'siliconflow/deepseek-v3.2-exp', 'siliconflow/deepseek-v4-flash', 'siliconflow/deepseek-v4-flash-0731', 'siliconflow/deepseek-v4-flash-vision-exp', 'siliconflow/deepseek-v4-pro', 'siliconflow/deepseek-v4-pro-0813', 'siliconflow/deepseek-v4.1-flash', 'siliconflow/gemma-4-26b-a4b-it', 'siliconflow/gemma-4-31b-it', 'siliconflow/glm-4.5-air', 'siliconflow/glm-5.1', 'siliconflow/glm-5.2', 'siliconflow/glm-5.3', 'siliconflow/glm-5.3-flash', 'siliconflow/glm-5v-turbo', 'siliconflow/gpt-oss-120b', 'siliconflow/gpt-oss-20b', 'siliconflow/hunyuan-a13b-instruct', 'siliconflow/hy3', 'siliconflow/hy4-preview', 'siliconflow/kimi-k2.6', 'siliconflow/kimi-k2.7-code', 'siliconflow/kimi-k3', 'siliconflow/ling-flash-2.0', 'siliconflow/longcat-2.0', 'siliconflow/minimax-m3', 'siliconflow/qwen2.5-72b-instruct', 'siliconflow/qwen2.5-7b-instruct', 'siliconflow/qwen3-14b', 'siliconflow/qwen3-30b-a3b-instruct-2507', 'siliconflow/qwen3-32b', 'siliconflow/qwen3-8b', 'siliconflow/qwen3-coder-30b-a3b-instruct', 'siliconflow/qwen3-vl-30b-a3b-instruct', 'siliconflow/qwen3-vl-30b-a3b-thinking', 'siliconflow/qwen3-vl-32b-instruct', 'siliconflow/qwen3-vl-32b-thinking', 'siliconflow/qwen3-vl-8b-instruct', 'siliconflow/qwen3.5-122b-a10b', 'siliconflow/qwen3.5-27b', 'siliconflow/qwen3.5-35b-a3b', 'siliconflow/qwen3.5-9b', 'siliconflow/qwen3.6-27b', 'siliconflow/qwen3.6-35b-a3b', 'siliconflow/qwen3.8-2.4t-a95b', 'siliconflow/seed-oss-36b-instruct', 'siliconflow/step-3.5-flash', 'together/beam-1.0-501b-a23b', 'together/deepseek-v4-pro-0813', 'together/deepseek-v4.1-flash', 'together/deepseek-v4.1-flash-1017', 'together/glm-5.2', 'together/glm-5.3', 'together/glm-5.3-flash', 'together/gpt-oss-120b', 'together/kimi-k3', 'together/kimi-k3.1-pro', 'together/minimax-m3.1-flash', 'together/muse-glimmer-30b', 'together/muse-spark-open', 'together/nvidia-nemotron-3.5-super-vl', 'together/qwen3.5-9b', 'together/qwen3.6-plus', 'together/qwen3.7-max', 'together/qwen3.7-plus', 'together/qwen3.8-flash', 'together/ternary-bonsai-27b', 'vertex/gemini-3.1-flash-lite', 'vertex/gemini-3.1-pro-preview', 'vertex/gemini-3.5-flash', 'vertex/gemini-3.5-flash-lite', 'vertex/gemini-3.6-flash', 'vertex/gemini-3.7-flash', 'vertex/gemini-3.8-flash', 'vertex/gemini-4-argon', 'vertex/gemini-robotics-er-2-preview', 'xai/grok-4.20-0309-non-reasoning', 'xai/grok-4.20-0309-reasoning', 'xai/grok-4.3', 'xai/grok-4.5', 'xai/grok-4.6', 'xai/grok-4.7', 'xai/grok-build-0.1', 'zai/glm-4-32b-0414-128k', 'zai/glm-4.5', 'zai/glm-4.5-air', 'zai/glm-4.5-airx', 'zai/glm-4.5-flash', 'zai/glm-4.5-x', 'zai/glm-4.5v', 'zai/glm-4.6', 'zai/glm-4.6v', 'zai/glm-4.6v-flashx', 'zai/glm-4.7', 'zai/glm-4.7-flash', 'zai/glm-4.7-flashx', 'zai/glm-5', 'zai/glm-5.1', 'zai/glm-5.2', 'zai/glm-5.3', 'zai/glm-5.3-flash', 'zai/glm-5.3-flashx', 'zai/glm-5.3-flashx-legal')
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.