Skip to content
Merged
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
225 changes: 155 additions & 70 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ generation:
documentation: mintlify
preApplyUnionDiscriminators: true
python:
version: 1.3.239
version: 1.3.240
additionalDependencies:
dev:
pytest: '>=8.3'
Expand Down
253 changes: 232 additions & 21 deletions .speakeasy/out.openapi.yaml

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@ speakeasyVersion: 1.803.2
sources:
OpenRouter API:
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:b449397bef66a2911564d32127ebfede6410da7f267d64d8ed2a7d1feccab8ee
sourceBlobDigest: sha256:8c442f998f818acea292dc01714f5505c983225285d5a70079dd3d6159383c87
sourceRevisionDigest: sha256:502093455748746ced1b5a75d7f2679fb7a63d58a0d640187714f81a76ea8d8c
sourceBlobDigest: sha256:64142d11f18120cbc817c7e3922fecb9f547447c2672f6e52b05e959912382ae
tags:
- latest
- 1.0.0
targets:
open-router:
source: OpenRouter API
sourceNamespace: open-router-chat-completions-api
sourceRevisionDigest: sha256:b449397bef66a2911564d32127ebfede6410da7f267d64d8ed2a7d1feccab8ee
sourceBlobDigest: sha256:8c442f998f818acea292dc01714f5505c983225285d5a70079dd3d6159383c87
sourceRevisionDigest: sha256:502093455748746ced1b5a75d7f2679fb7a63d58a0d640187714f81a76ea8d8c
sourceBlobDigest: sha256:64142d11f18120cbc817c7e3922fecb9f547447c2672f6e52b05e959912382ae
codeSamplesNamespace: open-router-python-code-samples
codeSamplesRevisionDigest: sha256:e37dcb5a8fc4cd7a863a8da8ec0b4bd2c033ec6ac95bd2042535448b313932f4
codeSamplesRevisionDigest: sha256:655ccaabfdf517078bc953cd3ac42038a7f8f90834a8e754dd664bc89ecc7059
workflow:
workflowVersion: 1.0.0
speakeasyVersion: 1.803.2
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5159,4 +5159,14 @@ Based on:
### Generated
- [python v1.3.239] .
### Releases
- [PyPI v1.3.239] https://pypi.org/project/openrouter/1.3.239 - .
- [PyPI v1.3.239] https://pypi.org/project/openrouter/1.3.239 - .

## 2026-12-03 21:24:19
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.803.2 (2.950.13) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v1.3.240] .
### Releases
- [PyPI v1.3.240] https://pypi.org/project/openrouter/1.3.240 - .
14 changes: 14 additions & 0 deletions docs/components/anthropicsafeguardresult.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
title: "AnthropicSafeguardResult"
---

The outcome of a server-side safeguard, keyed by tool-use id where applicable


## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `status` | [components.AnthropicSafeguardResultStatus](../components/anthropicsafeguardresultstatus.mdx) | βœ”οΈ | N/A | |
| `type` | *str* | βœ”οΈ | N/A | |
| `__pydantic_extra__` | Dict[str, *Any*] | βž– | N/A | \{<br/>"status": \{<br/>"tool_uses": \{<br/>"toolu_01ABC": \{<br/>"outcome": "not_flagged",<br/>"type": "evaluated"<br/>}<br/>},<br/>"type": "available"<br/>},<br/>"type": "dangerous_tool_use"<br/>} |
10 changes: 10 additions & 0 deletions docs/components/anthropicsafeguardresultstatus.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: "AnthropicSafeguardResultStatus"
---

## Fields

| Field | Type | Required | Description |
| -------------------- | -------------------- | -------------------- | -------------------- |
| `type` | *str* | βœ”οΈ | N/A |
| `__pydantic_extra__` | Dict[str, *Any*] | βž– | N/A |
10 changes: 0 additions & 10 deletions docs/components/anthropicservertoolusage.mdx

This file was deleted.

21 changes: 0 additions & 21 deletions docs/components/anthropicservicetier.mdx

This file was deleted.

10 changes: 10 additions & 0 deletions docs/components/appliededit.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: "AppliedEdit"
---

## Fields

| Field | Type | Required | Description |
| -------------------- | -------------------- | -------------------- | -------------------- |
| `type` | *str* | βœ”οΈ | N/A |
| `__pydantic_extra__` | Dict[str, *Any*] | βž– | N/A |
13 changes: 13 additions & 0 deletions docs/components/batchimagegenerationmissingimage.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "BatchImageGenerationMissingImage"
---

An image the provider returned that OpenRouter could not store. It is not billed.


## Fields

| Field | Type | Required | Description | Example |
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ |
| `index` | *int* | βœ”οΈ | Position of the image among the images returned for this request, from 0 | 1 |
| `message` | *str* | βœ”οΈ | Why the image is missing | The provider returned this image without readable image data. |
15 changes: 8 additions & 7 deletions docs/components/batchimagegenerationresponse.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ Image generation result of a batch request: image links and when they expire

## Fields

| Field | Type | Required | Description | Example |
| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `created` | *int* | βœ”οΈ | Unix timestamp (seconds) when the image was generated | 1748372400 |
| `data` | List[[components.BatchImageGenerationImage](../components/batchimagegenerationimage.mdx)] | βœ”οΈ | N/A | |
| `expires_at` | *int* | βœ”οΈ | Unix timestamp (seconds) when the image URLs in `data` stop working. Download the images before then. | 1748458800 |
| `id` | *Optional[str]* | βž– | Generation ID of this request. Look up its cost and details with `GET /api/v1/generation?id=<id>`. | gen-batch-1748372400-3f1c9b2e7a5d4c8e0b61 |
| `usage` | [Optional[components.ImageGenerationUsage]](../components/imagegenerationusage.mdx) | βž– | Token and cost usage for the image generation request, when available | \{<br/>"completion_tokens": 4175,<br/>"cost": 0.04,<br/>"prompt_tokens": 0,<br/>"total_tokens": 4175<br/>} |
| Field | Type | Required | Description | Example |
| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `created` | *int* | βœ”οΈ | Unix timestamp (seconds) when the image was generated | 1748372400 |
| `data` | List[[components.BatchImageGenerationImage](../components/batchimagegenerationimage.mdx)] | βœ”οΈ | N/A | |
| `expires_at` | *int* | βœ”οΈ | Unix timestamp (seconds) when the image URLs in `data` stop working. Download the images before then. | 1748458800 |
| `id` | *Optional[str]* | βž– | Generation ID of this request. Look up its cost and details with `GET /api/v1/generation?id=<id>`. | gen-batch-1748372400-3f1c9b2e7a5d4c8e0b61 |
| `missing_images` | List[[components.BatchImageGenerationMissingImage](../components/batchimagegenerationmissingimage.mdx)] | βž– | Images the provider returned without usable image data. Present only when some images of the request are missing; `data` lists the rest. | |
| `usage` | [Optional[components.ImageGenerationUsage]](../components/imagegenerationusage.mdx) | βž– | Token and cost usage for the image generation request, when available | \{<br/>"completion_tokens": 4175,<br/>"cost": 0.04,<br/>"prompt_tokens": 0,<br/>"total_tokens": 4175<br/>} |
9 changes: 9 additions & 0 deletions docs/components/batchresultcontextmanagement.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: "BatchResultContextManagement"
---

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `applied_edits` | List[[components.AppliedEdit](../components/appliededit.mdx)] | βœ”οΈ | N/A |
Loading