diff --git a/.speakeasy/in.openapi.yaml b/.speakeasy/in.openapi.yaml index ab5653ed..d6bc004b 100644 --- a/.speakeasy/in.openapi.yaml +++ b/.speakeasy/in.openapi.yaml @@ -16791,6 +16791,26 @@ components: description: 'An endpoint that serves a given image model.' example: allowed_passthrough_parameters: [] + input_modalities: + - type: 'text' + - supported_inputs: + references: + max: 14 + min: 0 + type: 'integer' + type: 'image' + output_modalities: + - streaming: false + supported_parameters: + resolution: + type: 'enum' + values: + - '1K' + - '2K' + - '4K' + seed: + type: 'integer' + type: 'image' pricing: - billable: 'output_image' cost_usd: 0.05 @@ -16799,6 +16819,10 @@ components: provider_slug: 'bytedance' provider_tag: 'bytedance' supported_parameters: + input_references: + max: 14 + min: 0 + type: 'range' resolution: type: 'enum' values: @@ -16815,6 +16839,18 @@ components: items: type: 'string' type: 'array' + input_modalities: + description: 'Typed inputs the model accepts, following the Models API V2 document.' + items: + $ref: '#/components/schemas/ModelInputModalityV2' + minItems: 1 + type: 'array' + output_modalities: + description: 'Typed outputs with the request fields each accepts, following the Models API V2 document.' + items: + $ref: '#/components/schemas/ModelOutputModalityV2' + minItems: 1 + type: 'array' pricing: description: 'Billable pricing lines for this endpoint.' example: @@ -17726,6 +17762,26 @@ components: example: endpoints: - allowed_passthrough_parameters: [] + input_modalities: + - type: 'text' + - supported_inputs: + references: + max: 14 + min: 0 + type: 'integer' + type: 'image' + output_modalities: + - streaming: false + supported_parameters: + resolution: + type: 'enum' + values: + - '1K' + - '2K' + - '4K' + seed: + type: 'integer' + type: 'image' pricing: - billable: 'output_image' cost_usd: 0.05 @@ -17734,12 +17790,18 @@ components: provider_slug: 'bytedance' provider_tag: 'bytedance' supported_parameters: + input_references: + max: 14 + min: 0 + type: 'range' resolution: type: 'enum' values: - '1K' - '2K' - '4K' + seed: + type: 'boolean' supports_streaming: false id: 'bytedance-seed/seedream-4.5' properties: @@ -17768,8 +17830,32 @@ components: description: 'A text-to-image model.' endpoints: '/api/v1/images/models/bytedance-seed/seedream-4.5/endpoints' id: 'bytedance-seed/seedream-4.5' + input_modalities: + - type: 'text' + - supported_inputs: + references: + max: 14 + min: 0 + type: 'integer' + type: 'image' name: 'Seedream 4.5' + output_modalities: + - streaming: false + supported_parameters: + resolution: + type: 'enum' + values: + - '1K' + - '2K' + - '4K' + seed: + type: 'integer' + type: 'image' supported_parameters: + input_references: + max: 14 + min: 0 + type: 'range' resolution: type: 'enum' values: @@ -17797,10 +17883,22 @@ components: description: 'Model slug' example: 'bytedance-seed/seedream-4.5' type: 'string' + input_modalities: + description: 'Typed inputs the model accepts, following the Models API V2 document.' + items: + $ref: '#/components/schemas/ModelInputModalityV2' + minItems: 1 + type: 'array' name: description: 'Display name' example: 'Seedream 4.5' type: 'string' + output_modalities: + description: 'Typed outputs with the request fields each accepts, following the Models API V2 document.' + items: + $ref: '#/components/schemas/ModelOutputModalityV2' + minItems: 1 + type: 'array' supported_parameters: $ref: '#/components/schemas/SupportedParameters' supports_streaming: @@ -17830,14 +17928,40 @@ components: description: 'A text-to-image model.' endpoints: '/api/v1/images/models/bytedance-seed/seedream-4.5/endpoints' id: 'bytedance-seed/seedream-4.5' + input_modalities: + - type: 'text' + - supported_inputs: + references: + max: 14 + min: 0 + type: 'integer' + type: 'image' name: 'Seedream 4.5' + output_modalities: + - streaming: false + supported_parameters: + resolution: + type: 'enum' + values: + - '1K' + - '2K' + - '4K' + seed: + type: 'integer' + type: 'image' supported_parameters: + input_references: + max: 14 + min: 0 + type: 'range' resolution: type: 'enum' values: - '1K' - '2K' - '4K' + seed: + type: 'boolean' supports_streaming: false properties: data: @@ -22460,6 +22584,464 @@ components: - 'Qwen3' example: 'GPT' type: 'string' + ModelInputModalityV2: + oneOf: + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_inputs: + additionalProperties: false + properties: + max_context_length: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + value: + minimum: 1 + type: 'integer' + required: + - 'value' + type: 'object' + max_prompt_length: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + value: + minimum: 1 + type: 'integer' + required: + - 'value' + type: 'object' + type: 'object' + type: + enum: + - 'text' + type: 'string' + required: + - 'type' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_inputs: + additionalProperties: false + properties: + detail_levels: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'auto' + - 'low' + - 'high' + - 'original' + type: 'string' + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + formats: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'image/png' + - 'image/jpeg' + - 'image/webp' + - 'image/gif' + type: 'string' + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + max_content_size_bytes: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + value: + minimum: 1 + type: 'integer' + required: + - 'value' + type: 'object' + references: + additionalProperties: false + properties: + max: + type: 'integer' + min: + type: 'integer' + type: + enum: + - 'integer' + type: 'string' + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + required: + - 'type' + type: 'object' + role: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'reference' + - 'first_frame' + - 'last_frame' + type: 'string' + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + sources: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'url' + - 'base64' + type: 'string' + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + type: 'object' + type: + enum: + - 'image' + type: 'string' + required: + - 'type' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_inputs: + additionalProperties: false + properties: + formats: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'video/mp4' + - 'video/webm' + type: 'string' + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + max_content_size_bytes: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + value: + minimum: 1 + type: 'integer' + required: + - 'value' + type: 'object' + max_duration_seconds: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + value: + exclusiveMinimum: 0 + minimum: 0 + type: 'number' + required: + - 'value' + type: 'object' + sources: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'url' + - 'base64' + type: 'string' + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + type: 'object' + type: + enum: + - 'video' + type: 'string' + required: + - 'type' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_inputs: + additionalProperties: false + properties: + formats: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'audio/wav' + - 'audio/mpeg' + type: 'string' + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + max_content_size_bytes: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + value: + minimum: 1 + type: 'integer' + required: + - 'value' + type: 'object' + max_duration_seconds: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + value: + exclusiveMinimum: 0 + minimum: 0 + type: 'number' + required: + - 'value' + type: 'object' + sources: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'url' + - 'base64' + type: 'string' + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + type: 'object' + type: + enum: + - 'audio' + type: 'string' + required: + - 'type' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_inputs: + additionalProperties: false + properties: + formats: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'application/pdf' + - 'text/plain' + - 'text/markdown' + - 'text/html' + - 'text/csv' + - 'application/json' + type: 'string' + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + max_content_size_bytes: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + value: + minimum: 1 + type: 'integer' + required: + - 'value' + type: 'object' + references: + additionalProperties: false + properties: + max: + type: 'integer' + min: + type: 'integer' + type: + enum: + - 'integer' + type: 'string' + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + required: + - 'type' + type: 'object' + sources: + additionalProperties: false + properties: + type: + enum: + - 'enum' + type: 'string' + values: + items: + enum: + - 'url' + - 'base64' + type: 'string' + type: 'array' + required: + - 'type' + - 'values' + type: 'object' + type: 'object' + type: + enum: + - 'file' + type: 'string' + required: + - 'type' + type: 'object' ModelLinks: description: 'Related API endpoints and resources for this model.' example: @@ -22476,6 +23058,205 @@ components: description: 'Model to use for completion' example: 'openai/gpt-4' type: 'string' + ModelOutputModalityV2: + oneOf: + - additionalProperties: false + properties: + max_length: + additionalProperties: false + properties: + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + value: + minimum: 1 + type: 'integer' + required: + - 'value' + type: 'object' + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + streaming: + type: 'boolean' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'text' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + streaming: + type: 'boolean' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'image' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + streaming: + type: 'boolean' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'video' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + streaming: + type: 'boolean' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'speech' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + streaming: + type: 'boolean' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'transcription' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'embeddings' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'rerank' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + max_choice_options: + minimum: 1 + type: 'integer' + max_score_levels: + minimum: 1 + type: 'integer' + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'decisions' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' + - additionalProperties: false + properties: + passthrough_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + streaming: + type: 'boolean' + supported_parameters: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'audio' + type: 'string' + required: + - 'type' + - 'supported_parameters' + type: 'object' ModelReasoning: description: 'Reasoning effort configuration. Omitted for non-reasoning models and dynamic router models.' example: @@ -29532,6 +30313,55 @@ components: - 'verbosity' example: 'temperature' type: 'string' + ParameterDescriptor: + additionalProperties: false + description: 'A request parameter descriptor: `type` is range, integer, boolean, enum, array, object or unknown, with the constraint fields of that type.' + properties: + default: + oneOf: + - type: 'string' + - type: 'number' + - type: 'boolean' + items: + $ref: '#/components/schemas/ParameterDescriptor' + max: + type: 'number' + max_items: + minimum: 1 + type: 'integer' + min: + type: 'number' + properties: + additionalProperties: + $ref: '#/components/schemas/ParameterDescriptor' + type: 'object' + type: + enum: + - 'range' + - 'integer' + - 'boolean' + - 'enum' + - 'array' + - 'object' + - 'unknown' + type: 'string' + unit: + enum: + - 'second' + - 'pixel' + - 'byte' + - 'token' + - 'character' + type: 'string' + values: + items: + oneOf: + - type: 'string' + - type: 'number' + type: 'array' + required: + - 'type' + type: 'object' ParetoRouterPlugin: example: enabled: true @@ -39550,7 +40380,49 @@ components: generate_audio: true hugging_face_id: null id: 'google/veo-3.1' + input_modalities: + - type: 'text' + - supported_inputs: + role: + type: 'enum' + values: + - 'first_frame' + - 'last_frame' + type: 'image' name: 'Google: Veo 3.1' + output_modalities: + - supported_parameters: + aspect_ratio: + type: 'enum' + values: + - '16:9' + - '9:16' + duration: + type: 'enum' + values: + - 4 + - 6 + - 8 + generate_audio: + type: 'boolean' + resolution: + type: 'enum' + values: + - '720p' + - '1080p' + - '4K' + seed: + type: 'integer' + size: + type: 'enum' + values: + - '1280x720' + - '1080x1920' + - '1920x1080' + - '720x1280' + - '3840x2160' + - '2160x3840' + type: 'video' pricing_skus: duration_seconds_with_audio: '0.40' duration_seconds_with_audio_4k: '0.60' @@ -39619,10 +40491,22 @@ components: description: 'Unique identifier for the model' example: 'openai/gpt-4' type: 'string' + input_modalities: + description: 'Typed inputs the model accepts, following the Models API V2 document. An image input lists the frame roles it may take.' + items: + $ref: '#/components/schemas/ModelInputModalityV2' + minItems: 1 + type: 'array' name: description: 'Display name of the model' example: 'GPT-4' type: 'string' + output_modalities: + description: 'Typed outputs with the request fields each accepts, following the Models API V2 document. Pricing stays in `pricing_skus`.' + items: + $ref: '#/components/schemas/ModelOutputModalityV2' + minItems: 1 + type: 'array' pricing_skus: additionalProperties: type: 'string' @@ -39830,7 +40714,49 @@ components: generate_audio: true hugging_face_id: null id: 'google/veo-3.1' + input_modalities: + - type: 'text' + - supported_inputs: + role: + type: 'enum' + values: + - 'first_frame' + - 'last_frame' + type: 'image' name: 'Google: Veo 3.1' + output_modalities: + - supported_parameters: + aspect_ratio: + type: 'enum' + values: + - '16:9' + - '9:16' + duration: + type: 'enum' + values: + - 4 + - 6 + - 8 + generate_audio: + type: 'boolean' + resolution: + type: 'enum' + values: + - '720p' + - '1080p' + - '4K' + seed: + type: 'integer' + size: + type: 'enum' + values: + - '1280x720' + - '1080x1920' + - '1920x1080' + - '720x1280' + - '3840x2160' + - '2160x3840' + type: 'video' pricing_skus: duration_seconds_with_audio: '0.40' duration_seconds_with_audio_4k: '0.60' @@ -51260,14 +52186,40 @@ paths: description: 'A text-to-image model.' endpoints: '/api/v1/images/models/bytedance-seed/seedream-4.5/endpoints' id: 'bytedance-seed/seedream-4.5' + input_modalities: + - type: 'text' + - supported_inputs: + references: + max: 14 + min: 0 + type: 'integer' + type: 'image' name: 'Seedream 4.5' + output_modalities: + - streaming: false + supported_parameters: + resolution: + type: 'enum' + values: + - '1K' + - '2K' + - '4K' + seed: + type: 'integer' + type: 'image' supported_parameters: + input_references: + max: 14 + min: 0 + type: 'range' resolution: type: 'enum' values: - '1K' - '2K' - '4K' + seed: + type: 'boolean' supports_streaming: false schema: $ref: '#/components/schemas/ImageModelsListResponse' @@ -51314,6 +52266,26 @@ paths: example: endpoints: - allowed_passthrough_parameters: [] + input_modalities: + - type: 'text' + - supported_inputs: + references: + max: 14 + min: 0 + type: 'integer' + type: 'image' + output_modalities: + - streaming: false + supported_parameters: + resolution: + type: 'enum' + values: + - '1K' + - '2K' + - '4K' + seed: + type: 'integer' + type: 'image' pricing: - billable: 'output_image' cost_usd: 0.05 @@ -51322,12 +52294,18 @@ paths: provider_slug: 'bytedance' provider_tag: 'bytedance' supported_parameters: + input_references: + max: 14 + min: 0 + type: 'range' resolution: type: 'enum' values: - '1K' - '2K' - '4K' + seed: + type: 'boolean' supports_streaming: false id: 'bytedance-seed/seedream-4.5' schema: @@ -55301,6 +56279,7 @@ paths: example: data: - email: 'jane.doe@example.com' + external_id: 'scim_usr_3J9P6a5UiLQcpRMGx4bdOVrKceF' first_name: 'Jane' id: 'user_2dHFtVWx2n56w6HkM0000000000' last_name: 'Doe' @@ -55316,6 +56295,12 @@ paths: description: 'Email address of the member' example: 'jane.doe@example.com' type: 'string' + external_id: + description: 'The member''s SCIM user ID, which your identity provider stores for their OpenRouter account (Okta shows it as External ID); not the SCIM `externalId` attribute. Set when your organization''s SCIM directory provisions, updates or syncs the member. Null when this organization''s directory did not provision the member (for example, they were invited, signed up directly, or provisioned by another organization''s directory) or has not synced them yet. Members can keep their last synced value after the directory is removed.' + example: 'scim_usr_3J9P6a5UiLQcpRMGx4bdOVrKceF' + type: + - 'string' + - 'null' first_name: description: 'First name of the member' example: 'Jane' @@ -55346,6 +56331,7 @@ paths: - 'last_name' - 'email' - 'role' + - 'external_id' type: 'object' type: 'array' total_count: @@ -62591,7 +63577,49 @@ paths: generate_audio: true hugging_face_id: null id: 'google/veo-3.1' + input_modalities: + - type: 'text' + - supported_inputs: + role: + type: 'enum' + values: + - 'first_frame' + - 'last_frame' + type: 'image' name: 'Google: Veo 3.1' + output_modalities: + - supported_parameters: + aspect_ratio: + type: 'enum' + values: + - '16:9' + - '9:16' + duration: + type: 'enum' + values: + - 4 + - 6 + - 8 + generate_audio: + type: 'boolean' + resolution: + type: 'enum' + values: + - '720p' + - '1080p' + - '4K' + seed: + type: 'integer' + size: + type: 'enum' + values: + - '1280x720' + - '1080x1920' + - '1920x1080' + - '720x1280' + - '3840x2160' + - '2160x3840' + type: 'video' pricing_skus: duration_seconds_with_audio: '0.40' duration_seconds_with_audio_4k: '0.60'