{
  "components": {
    "schemas": {
      "AdamParams": {
        "additionalProperties": false,
        "description": "AdamW step parameters (Tinker defaults); finite and in range, or the step is refused.",
        "properties": {
          "beta1": {
            "default": 0.9,
            "exclusiveMaximum": 1.0,
            "minimum": 0.0,
            "title": "Beta1",
            "type": "number"
          },
          "beta2": {
            "default": 0.95,
            "exclusiveMaximum": 1.0,
            "minimum": 0.0,
            "title": "Beta2",
            "type": "number"
          },
          "eps": {
            "default": 1e-12,
            "exclusiveMinimum": 0.0,
            "title": "Eps",
            "type": "number"
          },
          "grad_clip_norm": {
            "default": 0.0,
            "minimum": 0.0,
            "title": "Grad Clip Norm",
            "type": "number"
          },
          "learning_rate": {
            "default": 0.0001,
            "minimum": 0.0,
            "title": "Learning Rate",
            "type": "number"
          },
          "weight_decay": {
            "default": 0.0,
            "minimum": 0.0,
            "title": "Weight Decay",
            "type": "number"
          }
        },
        "title": "AdamParams",
        "type": "object"
      },
      "AnthropicError": {
        "description": "Anthropic error envelope returned when the request includes `anthropic-version`. Distinct from the OpenAI `{error: {message, type, param, code}}` body.",
        "properties": {
          "error": {
            "properties": {
              "message": {
                "title": "Message",
                "type": "string"
              },
              "type": {
                "title": "Type",
                "type": "string"
              }
            },
            "required": [
              "type",
              "message"
            ],
            "title": "Error",
            "type": "object"
          },
          "type": {
            "enum": [
              "error"
            ],
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "error"
        ],
        "title": "AnthropicError",
        "type": "object"
      },
      "AnthropicMessage": {
        "description": "A message in Anthropic format.\n\n``content`` accepts a plain string *or* a list of content blocks to support\nboth simple text and structured tool_use / tool_result payloads.",
        "properties": {
          "content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ContentBlock"
                    },
                    {
                      "$ref": "#/components/schemas/ImageContentBlock"
                    },
                    {
                      "additionalProperties": true,
                      "type": "object"
                    }
                  ]
                },
                "type": "array"
              }
            ],
            "title": "Content"
          },
          "role": {
            "title": "Role",
            "type": "string"
          }
        },
        "required": [
          "role",
          "content"
        ],
        "title": "AnthropicMessage",
        "type": "object"
      },
      "AnthropicMessagesRequest": {
        "description": "Anthropic Messages API request format.",
        "properties": {
          "cache_control": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cache Control"
          },
          "include_confidence": {
            "default": true,
            "title": "Include Confidence",
            "type": "boolean"
          },
          "include_spans": {
            "default": true,
            "title": "Include Spans",
            "type": "boolean"
          },
          "max_tokens": {
            "default": 1024,
            "maximum": 131072.0,
            "minimum": 1.0,
            "title": "Max Tokens",
            "type": "integer"
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/AnthropicMessage"
            },
            "minItems": 1,
            "title": "Messages",
            "type": "array"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "output_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/AnthropicOutputConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "schema": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Schema for the Fastino encoder (GLiNER models). A decoder model refuses it with a 400; send a JSON Schema in ``output_config.format`` for structured output. **Deprecated when supplied as a flat list** of entity labels; use the unified dict shape instead. Deprecated submissions emit ``Deprecation: true`` and ``Sunset: <RFC 7231 date>`` headers.",
            "title": "Schema"
          },
          "speed": {
            "anyOf": [
              {
                "enum": [
                  "standard",
                  "fast"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Anthropic inference speed mode. ``\"fast\"`` opts into high output-tokens-per-second inference on supported models (e.g. the latest Opus). Fastino forwards this only to the native Anthropic upstream (with the required ``fast-mode`` beta header); Bedrock and gateway routes ignore it.",
            "title": "Speed"
          },
          "stop_sequences": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stop Sequences"
          },
          "store": {
            "default": true,
            "title": "Store",
            "type": "boolean"
          },
          "stream": {
            "default": false,
            "title": "Stream",
            "type": "boolean"
          },
          "system": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "$ref": "#/components/schemas/SystemContentBlock"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "System"
          },
          "task_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Deprecated.** Legacy task hint. The unified schema disambiguates the task automatically. Submitting this field emits ``Deprecation: true`` and ``Sunset: <RFC 7231 date>`` headers.",
            "title": "Task Type"
          },
          "temperature": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Temperature"
          },
          "thinking": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Opt-in Anthropic-style extended-thinking controls. Fastino does not enable thinking by default; send the Anthropic-native object: {'type': 'enabled', 'budget_tokens': N, 'display'?: 'summarized'|'omitted'} for manual mode, {'type': 'adaptive', 'effort'?: tier, 'display'?: ...} for adaptive mode (required on Opus 4.7+ / Mythos, recommended on Opus 4.6 / Sonnet 4.6), or {'type': 'disabled'} to turn thinking off on models that have it on by default. Fastino normalizes this into one reasoning setting so the request routes correctly whether the upstream is Anthropic native, Bedrock, or the Vercel AI Gateway (which advertises the normalized ``reasoning`` field rather than ``thinking``). On models that require adaptive mode, Fastino auto-upgrades manual configs (mapping ``budget_tokens`` to the nearest ``effort`` tier) rather than letting the upstream return a 400.",
            "title": "Thinking"
          },
          "tool_choice": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Choice"
          },
          "tools": {
            "anyOf": [
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tools"
          },
          "top_k": {
            "anyOf": [
              {
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Top K"
          },
          "top_p": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Top P"
          }
        },
        "required": [
          "model",
          "messages"
        ],
        "title": "AnthropicMessagesRequest",
        "type": "object"
      },
      "AnthropicMessagesResponse": {
        "description": "Anthropic Messages API response format.\n\n``fastino_inference_id`` is a Fastino-only identifier for the persisted\ninference. It mirrors ``x_fastino.inference_id`` on OpenAI-compatible chat\ncompletions and can be used with ``GET /inferences/{id}`` to poll for\nevaluation results. It is null when persistence did not run.",
        "properties": {
          "content": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Content",
            "type": "array"
          },
          "fastino_inference_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Fastino Inference Id"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "role": {
            "default": "assistant",
            "title": "Role",
            "type": "string"
          },
          "stop_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": "end_turn",
            "title": "Stop Reason"
          },
          "stop_sequence": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stop Sequence"
          },
          "type": {
            "default": "message",
            "title": "Type",
            "type": "string"
          },
          "usage": {
            "$ref": "#/components/schemas/AnthropicUsage"
          }
        },
        "required": [
          "id",
          "content",
          "model",
          "usage"
        ],
        "title": "AnthropicMessagesResponse",
        "type": "object"
      },
      "AnthropicOutputConfig": {
        "additionalProperties": true,
        "description": "Anthropic output configuration passed through supported providers.",
        "properties": {
          "effort": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Effort"
          },
          "format": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Format"
          },
          "task_budget": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Task Budget"
          }
        },
        "title": "AnthropicOutputConfig",
        "type": "object"
      },
      "AnthropicUsage": {
        "description": "Usage statistics in Anthropic format.\n\n``input_tokens`` is Anthropic's non-cached input contract — cached\nreads / writes live in the separate ``cache_read_input_tokens`` /\n``cache_creation_input_tokens`` fields. Fastino mirrors the same\nshape on the ``/v1/messages`` wire so SDK consumers reading the\nfields directly stay correct.",
        "properties": {
          "cache_creation_input_tokens": {
            "default": 0,
            "title": "Cache Creation Input Tokens",
            "type": "integer"
          },
          "cache_read_input_tokens": {
            "default": 0,
            "title": "Cache Read Input Tokens",
            "type": "integer"
          },
          "input_tokens": {
            "default": 0,
            "title": "Input Tokens",
            "type": "integer"
          },
          "output_tokens": {
            "default": 0,
            "title": "Output Tokens",
            "type": "integer"
          },
          "server_tool_use": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "integer"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Server Tool Use"
          },
          "service_tier": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Service Tier"
          },
          "speed": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Speed"
          },
          "thinking_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Thinking Tokens"
          }
        },
        "title": "AnthropicUsage",
        "type": "object"
      },
      "AsyncGlinerRequest": {
        "description": "Request for async GLiNER-2 processing.",
        "properties": {
          "format_results": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": true,
            "title": "Format Results"
          },
          "include_confidence": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": true,
            "title": "Include Confidence"
          },
          "include_spans": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": true,
            "title": "Include Spans"
          },
          "schema": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "additionalProperties": true,
                "type": "object"
              }
            ],
            "description": "Extraction schema. The flat ``list[str]`` of entity labels is deprecated; use the unified dict shape (``entities`` / ``classifications`` / ``structures`` / ``relations``) for forward compatibility. Deprecated submissions emit ``Deprecation: true`` and ``Sunset: <RFC 7231 date>`` headers.",
            "title": "Schema"
          },
          "task": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Deprecated** legacy task hint. One of: 'extract_entities', 'classify_text', 'extract_json', 'schema'. Omit for the unified GLiNER2 path. Submitting a legacy task value still succeeds but the response carries ``Deprecation: true`` and a ``Sunset`` header.",
            "title": "Task"
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            ],
            "title": "Text"
          },
          "threshold": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": 0.5,
            "title": "Threshold"
          }
        },
        "required": [
          "text",
          "schema"
        ],
        "title": "AsyncGlinerRequest",
        "type": "object"
      },
      "AsyncGlinerResponse": {
        "description": "Response from async job submission.",
        "properties": {
          "estimated_tokens": {
            "title": "Estimated Tokens",
            "type": "integer"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "job_id",
          "status",
          "estimated_tokens",
          "message"
        ],
        "title": "AsyncGlinerResponse",
        "type": "object"
      },
      "BaseModelResponse": {
        "description": "Display metadata for a single base model in the public catalog.",
        "properties": {
          "agentic_benchmark_mean": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Mean of the model's curated agentic benchmarks on a 0-100 scale. Null when the model publishes fewer than two of them.",
            "title": "Agentic Benchmark Mean"
          },
          "agentic_benchmarks": {
            "description": "Every curated agentic benchmark the model reports, strongest first. Populated even when agentic_benchmark_mean is null.",
            "items": {
              "$ref": "#/components/schemas/BenchmarkComponentScore"
            },
            "title": "Agentic Benchmarks",
            "type": "array"
          },
          "cache_read_price_per_million": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Effective upper-bound USD list price per million input tokens served from the provider's prompt cache (Anthropic cache_read_input_tokens, Bedrock cacheReadInputTokens, OpenAI prompt_tokens_details.cached_tokens). This is the rate Fastino charges. When a provider does not differentiate cache-read pricing this equals ``input_price_per_million`` rather than ``None``, so customers compute ``cache_read_tokens × cache_read_price`` without special-casing. ``None`` only when the model has no pricing at all (cache reads are still tracked for analytics).",
            "title": "Cache Read Price Per Million"
          },
          "cache_write_price_per_million": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Effective upper-bound USD list price per million input tokens written into the provider's prompt cache (Anthropic cache_creation_input_tokens, Bedrock cacheWriteInputTokens). Providers that charge cache writes at the plain input rate (OpenAI, Modal) report ``input_price_per_million`` here rather than ``None``, matching the charged rate. ``None`` only when the model has no pricing at all.",
            "title": "Cache Write Price Per Million"
          },
          "coding_benchmark_mean": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Mean of the model's curated coding benchmarks on a 0-100 scale. Null when the model publishes fewer than two of them, since one benchmark is a data point rather than an average.",
            "title": "Coding Benchmark Mean"
          },
          "coding_benchmarks": {
            "description": "Every curated coding benchmark the model reports, strongest first, so a listing can show its working without a request per model. Populated even when coding_benchmark_mean is null, since a single figure is still worth showing.",
            "items": {
              "$ref": "#/components/schemas/BenchmarkComponentScore"
            },
            "title": "Coding Benchmarks",
            "type": "array"
          },
          "context_window": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Maximum context length in tokens (min across providers)",
            "title": "Context Window"
          },
          "default_training_batch_size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Catalog default training batch size for this model. Null when the model is not trainable on a provider that publishes batch defaults. Clients creating training jobs should prefer this value (or omit ``batch_size``) over hard-coding a global default.",
            "title": "Default Training Batch Size"
          },
          "deprecated": {
            "default": false,
            "description": "Whether the model is deprecated and discouraged for new work. Deprecated models still serve requests until their sunset date; sunset (removed) models are omitted from this catalog entirely.",
            "title": "Deprecated",
            "type": "boolean"
          },
          "deprecation_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date the model entered (or will enter) the deprecated state. Null when the model is not on a deprecation path.",
            "title": "Deprecation Date"
          },
          "description": {
            "description": "Short description shown in UI",
            "title": "Description",
            "type": "string"
          },
          "encoder_features": {
            "anyOf": [
              {
                "items": {
                  "enum": [
                    "entities",
                    "classifications",
                    "structures",
                    "relations",
                    "records",
                    "span_attributes",
                    "constrained_classification",
                    "joint_ie",
                    "wide_span_entities"
                  ],
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Hosted encoder features for this model. Null for decoder and embedding models. The value is a subset of a fixed vocabulary, so a feature missing from the list is not hosted.",
            "title": "Encoder Features"
          },
          "featured_rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Position among the hosted models featured on the /models landing; lower rank shows first. Null when the model is not featured.",
            "title": "Featured Rank"
          },
          "id": {
            "description": "Model ID (canonical routing key)",
            "title": "Id",
            "type": "string"
          },
          "input_price_per_million": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Upper-bound USD list price per million input tokens (highest provider COGS multiplied by the inference margin). This is the maximum rate Fastino charges; actual charges may be lower when the request is routed to a cheaper provider.",
            "title": "Input Price Per Million"
          },
          "is_chat_model": {
            "description": "Whether the model has a chat template suitable for /v1/chat/completions. Pretrained/base models lack a chat template and produce gibberish on chat-formatted messages. The public catalog has no servable non-chat decoder.",
            "title": "Is Chat Model",
            "type": "boolean"
          },
          "label": {
            "description": "Human-friendly display name",
            "title": "Label",
            "type": "string"
          },
          "license": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "SPDX license identifier or short name for the model weights (e.g. 'Apache-2.0', 'Llama-3-Community', 'Proprietary'). Display string only — null when unknown.",
            "title": "License"
          },
          "market_input_price_per_million": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Median USD per 1M input tokens across the third-party providers serving this model, for comparison against our own rate. Median rather than mean so one outlying listing cannot move it. Never used to bill. Null when nobody publishes a rate for it.",
            "title": "Market Input Price Per Million"
          },
          "market_output_price_per_million": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Median USD per 1M output tokens across third-party providers.",
            "title": "Market Output Price Per Million"
          },
          "market_price_provider_count": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Provider count behind the better-evidenced side: the larger of the input and output counts, which is a lower bound on how many providers list the model rather than a distinct count of them. The two sides can be drawn from different subsets, since a few providers publish an input rate only, so neither side alone is the total. Present so a lone quote can be told apart from a real market. Null when there are no market rates.",
            "title": "Market Price Provider Count"
          },
          "max_input_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Maximum input tokens advertised for this model. Matches the conservative provider context window used by this catalog row. For encoder (GLiNER) models this is the text plus schema limit; longer input is rejected with input_too_long unless the request sets truncate_overflow_text. Null when the catalog has no limit.",
            "title": "Max Input Tokens"
          },
          "max_output_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Maximum output tokens advertised for decoder generation. Null when no provider publishes a separate output cap.",
            "title": "Max Output Tokens"
          },
          "max_training_batch_size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Safe maximum training batch size for this model on the training provider. Null when unset or the model is not trainable. Requests above this maximum are rejected (except the legacy explicit Field-default clamp documented on TrainingJobCreate).",
            "title": "Max Training Batch Size"
          },
          "max_training_length": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Largest training ``max_length`` (tokens per row) this model admits: the tighter of the catalog training ceiling and the context window. Null when the model is not trainable. Requests above it are rejected before a job is created.",
            "title": "Max Training Length"
          },
          "output_price_per_million": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Upper-bound USD list price per million output tokens (highest provider COGS multiplied by the inference margin). This is the maximum rate Fastino charges; actual charges may be lower when the request is routed to a cheaper provider.",
            "title": "Output Price Per Million"
          },
          "release_month": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Official release month shown in the public catalog, formatted as 'Mon YYYY' (for example, 'Apr 2026'). Null when unknown.",
            "title": "Release Month"
          },
          "replacement_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Canonical ID of the successor model to migrate to, when the model is deprecated and a replacement is declared.",
            "title": "Replacement Model"
          },
          "sunset_date": {
            "anyOf": [
              {
                "format": "date",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Date the model is removed and requests begin to be rejected. Null when no removal is scheduled.",
            "title": "Sunset Date"
          },
          "supports_image_input": {
            "default": false,
            "description": "Whether this model accepts image (vision) content blocks on the compat inference APIs. True when any provider catalog entry for this model sets supports_vision=True. Output is always text — no model supports image output.",
            "title": "Supports Image Input",
            "type": "boolean"
          },
          "supports_inference": {
            "description": "Whether this model supports serverless base-model inference (pre-deployed, no startup latency, pay-per-token). This is model-level availability only and does not guarantee every upstream model-card feature; hosted encoder features are encoder_features.",
            "title": "Supports Inference",
            "type": "boolean"
          },
          "supports_on_demand_inference": {
            "description": "Whether this model supports on-demand LoRA deployment (dedicated GPU serving a fine-tuned adapter).",
            "title": "Supports On Demand Inference",
            "type": "boolean"
          },
          "supports_training": {
            "description": "Whether this model supports fine-tuning on any provider. When False the model is available for inference only. Equal to ``bool(training_types)``.",
            "title": "Supports Training",
            "type": "boolean"
          },
          "supports_zdr": {
            "default": false,
            "description": "Whether this model has a Zero-Data-Retention-compliant route. Informational — shown on the models page. Fails closed: defaults False and is True only when the model is explicitly catalogued as ZDR-supported, so the claim is never over-reported.",
            "title": "Supports Zdr",
            "type": "boolean"
          },
          "task_type": {
            "description": "Model architecture: 'decoder' for LLMs, 'encoder' for GLiNER/NER models, or 'embedding' for text embedding models",
            "title": "Task Type",
            "type": "string"
          },
          "tier": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Capability tier: 'open' (open weights), 'fast' (latency-optimized), 'enterprise' (proprietary commercial API), or 'research' (research preview). Null when unclassified.",
            "title": "Tier"
          },
          "training_types": {
            "description": "Training types this model can actually be fine-tuned with, sorted and de-duplicated (e.g. ``[\"lora\"]``, ``[\"lora\", \"full\"]``). Empty when the model is not trainable. Derived from the SFT routes in the same training provider registry that decides which (model, training_type) requests ``POST /v1/training/jobs`` accepts under its default ``training_algorithm=sft``, restricted to the public ``full``/``lora`` vocabulary, so a value listed here is a route the training gate will not reject: a model listing only ``[\"lora\"]`` rejects a ``full`` training request with HTTP 400. Decoders are the exception: ``POST /v1/training/jobs`` rejects them with HTTP 400, and a decoder lists ``[\"lora\"]`` only when the caller's team can train it step by step with the training job routes under /v1/training/jobs.",
            "items": {
              "enum": [
                "full",
                "lora"
              ],
              "type": "string"
            },
            "title": "Training Types",
            "type": "array"
          }
        },
        "required": [
          "id",
          "label",
          "description",
          "task_type",
          "supports_inference",
          "is_chat_model",
          "supports_on_demand_inference",
          "supports_training"
        ],
        "title": "BaseModelResponse",
        "type": "object"
      },
      "BaseModelsResponse": {
        "description": "Response listing all base models in the public catalog.",
        "properties": {
          "models": {
            "items": {
              "$ref": "#/components/schemas/BaseModelResponse"
            },
            "title": "Models",
            "type": "array"
          }
        },
        "required": [
          "models"
        ],
        "title": "BaseModelsResponse",
        "type": "object"
      },
      "BenchmarkComponentScore": {
        "description": "One curated benchmark figure the model reports on an axis.",
        "properties": {
          "benchmark_id": {
            "description": "Upstream benchmark slug",
            "title": "Benchmark Id",
            "type": "string"
          },
          "label": {
            "description": "Display name for the benchmark",
            "title": "Label",
            "type": "string"
          },
          "score": {
            "description": "Normalized score on a 0-100 scale",
            "title": "Score",
            "type": "number"
          }
        },
        "required": [
          "benchmark_id",
          "label",
          "score"
        ],
        "title": "BenchmarkComponentScore",
        "type": "object"
      },
      "ChatCompletionChoice": {
        "description": "A single completion choice.",
        "properties": {
          "finish_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finish Reason"
          },
          "index": {
            "default": 0,
            "title": "Index",
            "type": "integer"
          },
          "message": {
            "additionalProperties": true,
            "title": "Message",
            "type": "object"
          }
        },
        "title": "ChatCompletionChoice",
        "type": "object"
      },
      "ChatCompletionRequest": {
        "description": "OpenAI-compatible chat completion request.",
        "properties": {
          "extra_body": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Extra Body"
          },
          "extra_headers": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Extra Headers"
          },
          "frequency_penalty": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Frequency Penalty"
          },
          "include_confidence": {
            "default": true,
            "title": "Include Confidence",
            "type": "boolean"
          },
          "include_spans": {
            "default": true,
            "title": "Include Spans",
            "type": "boolean"
          },
          "logit_bias": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Logit Bias"
          },
          "max_tokens": {
            "anyOf": [
              {
                "maximum": 131072.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Tokens"
          },
          "messages": {
            "items": {
              "$ref": "#/components/schemas/ChatMessage"
            },
            "minItems": 1,
            "title": "Messages",
            "type": "array"
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metadata"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "n": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "N"
          },
          "presence_penalty": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Presence Penalty"
          },
          "reasoning": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Opt-in reasoning / extended-thinking controls. Accepts Fastino's normalized shape with keys ``enabled`` (bool), ``max_tokens`` (int, Anthropic-style budget), ``effort`` (one of minimal/low/medium/high/xhigh/max/none, OpenAI-style tier), and ``exclude`` (bool, hide reasoning tokens from the response). ``effort`` and ``max_tokens`` are mutually exclusive. Fastino extensions for Claude routes (Anthropic direct + Bedrock): ``mode`` (manual/adaptive — adaptive lets the model pick thinking depth per request, required on Opus 4.7+) and ``display`` (summarized/omitted — controls whether thinking text streams back; omitted preserves only the signature for multi-turn). On Chat Completions, provider reasoning text is hidden by default and is returned on ``message.reasoning_content`` / ``delta.reasoning_content`` only when the caller explicitly requests visible reasoning with ``exclude=false`` or ``display=summarized``. Fastino normalizes this into one reasoning setting and each provider renders it to its native wire field (Anthropic ``thinking``, OpenAI ``reasoning_effort``, Vercel AI Gateway ``reasoning``). Fastino does not enable reasoning by default.",
            "title": "Reasoning"
          },
          "response_format": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Response Format"
          },
          "schema": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Schema for the Fastino encoder (GLiNER models). A decoder model refuses it with a 400; send a JSON Schema in ``response_format`` for structured output. **Deprecated when supplied as a flat list** of entity labels; use the unified dict shape (``entities`` / ``classifications`` / ``structures`` / ``relations``) instead. Deprecated submissions emit ``Deprecation: true`` and ``Sunset: <RFC 7231 date>`` headers. Record modes (``natural``, ``latent``, ``anchorless``) are hosted when ``encoder_features`` includes ``records``, which ``fastino/gliner2.5-multi-v1`` does. ``mode``, ``anchor``, ``occurrence_policy``, and field ``cardinality`` return 400 on any other encoder. Span attributes (``entity_attributes``) are hosted when ``encoder_features`` includes ``span_attributes``, which ``fastino/gliner2.5-multi-v1`` does. Constrained classification (``version``, ``tasks``, ``constraints``) is hosted when ``encoder_features`` includes ``constrained_classification``, which ``fastino/gliner2.5-multi-v1`` does. JointIE (``constraints`` without ``tasks`` or ``version``, and relation ``head`` / ``tail`` options) is hosted when ``encoder_features`` includes ``joint_ie``, which ``fastino/gliner2.5-multi-v1`` does. Read ``encoder_features`` on ``GET /v1/base-models``.",
            "title": "Schema"
          },
          "seed": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Seed"
          },
          "stop": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stop"
          },
          "store": {
            "default": true,
            "title": "Store",
            "type": "boolean"
          },
          "stream": {
            "default": false,
            "title": "Stream",
            "type": "boolean"
          },
          "system": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "System"
          },
          "task_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Deprecated.** Legacy task hint (``extract_entities`` / ``classify_text`` / ``extract_json`` / ``ner`` / ``schema``). The unified schema disambiguates the task automatically so this field is no longer required. Submitting it emits ``Deprecation: true`` and ``Sunset: <RFC 7231 date>`` headers on the response.",
            "title": "Task Type"
          },
          "temperature": {
            "anyOf": [
              {
                "maximum": 2.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Sampling temperature",
            "title": "Temperature"
          },
          "threshold": {
            "default": 0.5,
            "description": "Confidence threshold for encoder (GLiNER) predictions.",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Threshold",
            "type": "number"
          },
          "tool_choice": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Choice"
          },
          "tools": {
            "anyOf": [
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tools"
          },
          "top_p": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Top P"
          },
          "truncate_overflow_text": {
            "default": false,
            "description": "Encoder (GLiNER) models only. When the text is longer than the model's max_input_tokens, cut it to fit instead of rejecting the request with input_too_long. Off by default. A response whose input was cut reports x_fastino.truncated: true; entities past the cut are not returned. Token usage still counts the full submitted text. Texts over 50,000 characters are rejected before truncation applies. Applies to base, LoRA and full fine-tuned encoder models; the schema shares the token budget.",
            "title": "Truncate Overflow Text",
            "type": "boolean"
          },
          "user": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User"
          }
        },
        "required": [
          "model",
          "messages"
        ],
        "title": "ChatCompletionRequest",
        "type": "object"
      },
      "ChatCompletionResponse": {
        "description": "OpenAI-compatible chat completion response.",
        "properties": {
          "choices": {
            "items": {
              "$ref": "#/components/schemas/ChatCompletionChoice"
            },
            "title": "Choices",
            "type": "array"
          },
          "created": {
            "title": "Created",
            "type": "integer"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "object": {
            "default": "chat.completion",
            "title": "Object",
            "type": "string"
          },
          "usage": {
            "$ref": "#/components/schemas/ChatCompletionUsage"
          },
          "x_fastino": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FastinoExtension"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "model",
          "choices",
          "usage"
        ],
        "title": "ChatCompletionResponse",
        "type": "object"
      },
      "ChatCompletionUsage": {
        "description": "Token usage statistics.\n\n``prompt_tokens`` follows the upstream wire contract — *includes* every\ninput class (non-cached, cache read, and cache write). The breakdown is\nexposed under ``prompt_tokens_details`` so consumers can attribute the\ncached-read and cache-write subsets.",
        "properties": {
          "completion_tokens": {
            "default": 0,
            "title": "Completion Tokens",
            "type": "integer"
          },
          "prompt_tokens": {
            "default": 0,
            "title": "Prompt Tokens",
            "type": "integer"
          },
          "prompt_tokens_details": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/PromptTokensDetails"
              },
              {
                "type": "null"
              }
            ]
          },
          "total_tokens": {
            "default": 0,
            "title": "Total Tokens",
            "type": "integer"
          }
        },
        "title": "ChatCompletionUsage",
        "type": "object"
      },
      "ChatMessage": {
        "description": "A single chat message.\n\n``content`` accepts either a plain string or a list of content blocks\n(e.g. ``[{\"type\": \"text\", ...}, {\"type\": \"image_url\", ...}]``) so that\nmultimodal/vision payloads can pass through to upstream providers.",
        "properties": {
          "content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "reasoning_content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reasoning Content"
          },
          "role": {
            "title": "Role",
            "type": "string"
          },
          "tool_call_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Call Id"
          },
          "tool_calls": {
            "anyOf": [
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Calls"
          }
        },
        "required": [
          "role"
        ],
        "title": "ChatMessage",
        "type": "object"
      },
      "CheckpointDownloadResponse": {
        "description": "``GET /v1/training/jobs/{job_id}/checkpoints/{checkpoint_id}/download``: a short-lived signed link.",
        "properties": {
          "checkpoint_id": {
            "title": "Checkpoint Id",
            "type": "string"
          },
          "download_url": {
            "description": "Signed URL of the checkpoint's tar archive; needs no credentials.",
            "title": "Download Url",
            "type": "string"
          },
          "expires_in_seconds": {
            "title": "Expires In Seconds",
            "type": "integer"
          },
          "file_name": {
            "title": "File Name",
            "type": "string"
          },
          "run_id": {
            "title": "Run Id",
            "type": "string"
          },
          "success": {
            "default": true,
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "run_id",
          "checkpoint_id",
          "download_url",
          "expires_in_seconds",
          "file_name"
        ],
        "title": "CheckpointDownloadResponse",
        "type": "object"
      },
      "CheckpointListResponse": {
        "description": "List of checkpoints response",
        "properties": {
          "checkpoints": {
            "items": {
              "$ref": "#/components/schemas/CheckpointResponse"
            },
            "title": "Checkpoints",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "checkpoints",
          "count"
        ],
        "title": "CheckpointListResponse",
        "type": "object"
      },
      "CheckpointResponse": {
        "description": "Single checkpoint response",
        "properties": {
          "accuracy": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Accuracy"
          },
          "checkpoint_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Checkpoint Path"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "epoch": {
            "title": "Epoch",
            "type": "integer"
          },
          "gpu_memory_total": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gpu Memory Total"
          },
          "gpu_memory_used": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Gpu Memory Used"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "is_best": {
            "default": false,
            "title": "Is Best",
            "type": "boolean"
          },
          "is_deployable": {
            "default": false,
            "title": "Is Deployable",
            "type": "boolean"
          },
          "is_final": {
            "default": false,
            "title": "Is Final",
            "type": "boolean"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "learning_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Learning Rate"
          },
          "step": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Step"
          },
          "training_loss": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Loss"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          },
          "validation_loss": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Validation Loss"
          }
        },
        "required": [
          "id",
          "job_id",
          "epoch",
          "created_at",
          "updated_at"
        ],
        "title": "CheckpointResponse",
        "type": "object"
      },
      "CheckpointView": {
        "description": "A checkpoint (the SDK's ``Checkpoint``).",
        "properties": {
          "checkpoint_id": {
            "title": "Checkpoint Id",
            "type": "string"
          },
          "checkpoint_type": {
            "enum": [
              "training",
              "sampler"
            ],
            "title": "Checkpoint Type",
            "type": "string"
          },
          "expires_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Expires At"
          },
          "public": {
            "default": false,
            "title": "Public",
            "type": "boolean"
          },
          "size_bytes": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Size Bytes"
          },
          "time": {
            "format": "date-time",
            "title": "Time",
            "type": "string"
          },
          "tinker_path": {
            "description": "The checkpoint's tinker:// path, which the SDK addresses it by.",
            "title": "Tinker Path",
            "type": "string"
          },
          "user_metadata": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Metadata"
          }
        },
        "required": [
          "checkpoint_id",
          "checkpoint_type",
          "time",
          "tinker_path"
        ],
        "title": "CheckpointView",
        "type": "object"
      },
      "ChoiceAnswer": {
        "additionalProperties": false,
        "description": "The chosen option and the probability of every option.",
        "properties": {
          "choice": {
            "description": "The option name with the highest probability.",
            "title": "Choice",
            "type": "string"
          },
          "confidence": {
            "description": "Probability margin between the best and second-best option.",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence",
            "type": "number"
          },
          "probabilities": {
            "additionalProperties": {
              "maximum": 1.0,
              "minimum": 0.0,
              "type": "number"
            },
            "description": "Probability of every option, keyed by option name.",
            "title": "Probabilities",
            "type": "object"
          },
          "type": {
            "const": "choice",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "choice",
          "confidence",
          "probabilities"
        ],
        "title": "Choice answer",
        "type": "object"
      },
      "ChoiceQuestion": {
        "additionalProperties": false,
        "description": "A question whose answer is one of 2 to 255 named options.",
        "properties": {
          "criteria": {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue-Input"
            },
            "description": "2 to 255 options. Each key is an option name returned in `choice`; each value describes when that option applies.",
            "maxProperties": 255,
            "minProperties": 2,
            "title": "Criteria",
            "type": "object"
          },
          "instructions": {
            "description": "The question to answer about `state`. A JSON object is accepted and sent as its compact JSON text.",
            "minLength": 1,
            "title": "Instructions",
            "type": "string"
          },
          "type": {
            "const": "choice",
            "description": "`choice` to pick one named option.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "instructions",
          "criteria"
        ],
        "title": "Choice",
        "type": "object"
      },
      "ContentBlock": {
        "additionalProperties": true,
        "description": "A content block in Anthropic format.\n\nSupports ``text``, ``tool_use``, and ``tool_result`` block types so that\ntool-calling round-trips work with Anthropic SDK clients.",
        "properties": {
          "content": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Content"
          },
          "id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Id"
          },
          "input": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Input"
          },
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Text"
          },
          "tool_use_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Tool Use Id"
          },
          "type": {
            "default": "text",
            "title": "Type",
            "type": "string"
          }
        },
        "title": "ContentBlock",
        "type": "object"
      },
      "CreateModelAccepted": {
        "description": "A new interactive job: it trains once its ``create`` future (and ``load``, from a checkpoint) completes.",
        "properties": {
          "base_model": {
            "title": "Base Model",
            "type": "string"
          },
          "future_id": {
            "description": "The job's `create` future.",
            "title": "Future Id",
            "type": "string"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "load_future_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "With `from_checkpoint`: the future that loads it.",
            "title": "Load Future Id"
          },
          "type": {
            "const": "interactive",
            "default": "interactive",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "job_id",
          "base_model",
          "future_id"
        ],
        "title": "CreateModelAccepted",
        "type": "object"
      },
      "CreateModelBody": {
        "additionalProperties": false,
        "description": "``POST /v1/training/jobs/create-model``: a LoRA job on a base model, or one restored from a saved state.",
        "properties": {
          "base_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A model served for training (`GET /v1/base-models?supports_training=true`).",
            "title": "Base Model"
          },
          "from_checkpoint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "A training-state checkpoint (`tinker://<job_id>/weights/<name>`) to start from; the job takes its base model and LoRA settings.",
            "title": "From Checkpoint"
          },
          "load_optimizer": {
            "default": false,
            "description": "With `from_checkpoint`, also restore the optimizer state.",
            "title": "Load Optimizer",
            "type": "boolean"
          },
          "lora_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/LoraConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "optimizer_config": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OptimizerConfig"
              },
              {
                "type": "null"
              }
            ]
          },
          "project_id": {
            "anyOf": [
              {
                "maxLength": 128,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "user_metadata": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "String keys and values, as on `save-weights`.",
            "title": "User Metadata"
          }
        },
        "title": "CreateModelBody",
        "type": "object"
      },
      "DatasetListResponse": {
        "description": "Response model for listing datasets.",
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "datasets": {
            "items": {
              "$ref": "#/components/schemas/DatasetResponse"
            },
            "title": "Datasets",
            "type": "array"
          },
          "success": {
            "default": true,
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "datasets",
          "count"
        ],
        "title": "DatasetListResponse",
        "type": "object"
      },
      "DatasetProvenance": {
        "additionalProperties": false,
        "description": "Record how a dataset was created, which inputs produced it, and its agent-run lineage.",
        "properties": {
          "agent_run": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DatasetProvenanceAgentRun"
              },
              {
                "type": "null"
              }
            ]
          },
          "fallback": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DatasetProvenanceFallback"
              },
              {
                "type": "null"
              }
            ]
          },
          "generator_context": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JsonObject-Output"
              },
              {
                "type": "null"
              }
            ]
          },
          "method": {
            "enum": [
              "synthesize",
              "upload",
              "external",
              "grow",
              "augment",
              "version",
              "merge",
              "auto_relabel",
              "manual_relabel",
              "evaluation_suite",
              "agent_curated"
            ],
            "title": "Method",
            "type": "string"
          },
          "parent_dataset_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Parent Dataset Id"
          },
          "schema_version": {
            "const": 1,
            "default": 1,
            "title": "Schema Version",
            "type": "integer"
          },
          "source_dataset_ids": {
            "items": {
              "type": "string"
            },
            "title": "Source Dataset Ids",
            "type": "array"
          },
          "sources": {
            "items": {
              "$ref": "#/components/schemas/DatasetProvenanceSource"
            },
            "title": "Sources",
            "type": "array"
          },
          "synthesis_session_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Synthesis Session Id"
          },
          "transform_context": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/JsonObject-Output"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "method"
        ],
        "title": "DatasetProvenance",
        "type": "object"
      },
      "DatasetProvenanceAgentRun": {
        "additionalProperties": false,
        "description": "Mark a dataset version written by a Fine-Tune Agent run's internal key.",
        "properties": {
          "experiment_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The run's Experiment, or null for a run that has none.",
            "title": "Experiment Id"
          },
          "run_artifact": {
            "description": "True when the run started the lineage. False when it versioned a dataset the customer made, so listings keep that lineage with the customer's own data.",
            "title": "Run Artifact",
            "type": "boolean"
          }
        },
        "required": [
          "run_artifact"
        ],
        "title": "DatasetProvenanceAgentRun",
        "type": "object"
      },
      "DatasetProvenanceFallback": {
        "additionalProperties": false,
        "description": "Describe a fallback used after the preferred source or strategy failed.",
        "properties": {
          "attempts": {
            "description": "Attempts made before the fallback succeeded.",
            "minimum": 1.0,
            "title": "Attempts",
            "type": "integer"
          },
          "reason": {
            "description": "Why the preferred path could not be used.",
            "minLength": 1,
            "title": "Reason",
            "type": "string"
          }
        },
        "required": [
          "reason",
          "attempts"
        ],
        "title": "DatasetProvenanceFallback",
        "type": "object"
      },
      "DatasetProvenanceSource": {
        "additionalProperties": false,
        "description": "Describe one external source used to create a dataset.",
        "properties": {
          "license": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Source license, when known.",
            "title": "License"
          },
          "raw_hash": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Digest of the retrieved source bytes, when known.",
            "title": "Raw Hash"
          },
          "retrieved_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Time at which the source was retrieved, when known.",
            "title": "Retrieved At"
          },
          "revision": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Branch, commit, tag, or dataset revision, when known.",
            "title": "Revision"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Stable source URL, when known.",
            "title": "Url"
          }
        },
        "title": "DatasetProvenanceSource",
        "type": "object"
      },
      "DatasetReference": {
        "description": "Reference to a dataset by name and optional version",
        "properties": {
          "name": {
            "description": "Dataset name",
            "title": "Name",
            "type": "string"
          },
          "version": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Version (latest if omitted)",
            "title": "Version"
          }
        },
        "required": [
          "name"
        ],
        "title": "DatasetReference",
        "type": "object"
      },
      "DatasetResponse": {
        "description": "Response model for a single dataset.",
        "properties": {
          "annotation_config": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Annotation Config"
          },
          "annotation_progress": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Annotation Progress"
          },
          "annotation_status": {
            "anyOf": [
              {
                "enum": [
                  "none",
                  "in_progress",
                  "completed"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Annotation Status"
          },
          "column_mapping": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Column mapping from original to standard names",
            "title": "Column Mapping"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "dataset_name": {
            "title": "Dataset Name",
            "type": "string"
          },
          "dataset_path": {
            "title": "Dataset Path",
            "type": "string"
          },
          "dataset_type": {
            "title": "Dataset Type",
            "type": "string"
          },
          "generation_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Canonical operation that created this dataset version.",
            "title": "Generation Type"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "is_competition": {
            "default": false,
            "description": "Whether this dataset is a competition benchmark",
            "title": "Is Competition",
            "type": "boolean"
          },
          "is_seed": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": false,
            "description": "Whether this dataset is a seed dataset (small set for review before full expansion)",
            "title": "Is Seed"
          },
          "labels": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Label names (entity types for NER, class labels for classification). A training job accepts at most 250 unique labels across its datasets.",
            "title": "Labels"
          },
          "processing_error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Error message if status is failed",
            "title": "Processing Error"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "provenance": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/DatasetProvenance"
              },
              {
                "type": "null"
              }
            ],
            "description": "Versioned lineage retained if its originating sandbox is deleted. Omitted when provenance was not recorded. User-authored task text is removed from generator context before the lineage is returned."
          },
          "root_dataset_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Root Dataset Id"
          },
          "sample_size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sample Size"
          },
          "schema": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Schema"
          },
          "schema_warnings": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Schema Warnings"
          },
          "size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Size"
          },
          "status": {
            "anyOf": [
              {
                "enum": [
                  "initialized",
                  "uploading",
                  "converting",
                  "validating",
                  "ready",
                  "failed",
                  "generating",
                  "queued"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": "ready",
            "description": "Dataset status: initialized/uploading/converting/validating/ready/failed/generating/queued",
            "title": "Status"
          },
          "synthesis_session_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "UUID of the synthesis log session for this dataset, used to restore creation workflow on resume",
            "title": "Synthesis Session Id"
          },
          "train_ratio": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Train split ratio for this dataset version. Left-to-right split with no shuffle; validation is the tail.",
            "title": "Train Ratio"
          },
          "type": {
            "default": "training",
            "description": "Dataset purpose tag: 'training', 'evaluation', or 'benchmark'",
            "title": "Type",
            "type": "string"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          },
          "user_id": {
            "title": "User Id",
            "type": "string"
          },
          "validation": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Validation"
          },
          "version_number": {
            "default": "1",
            "title": "Version Number",
            "type": "string"
          },
          "visibility": {
            "default": "private",
            "description": "Dataset visibility: 'private' or 'public'",
            "title": "Visibility",
            "type": "string"
          },
          "warnings": {
            "description": "Why this dataset will not train well on its own: too few rows, a single class, or more labels than training accepts. Derived from the processed dataset, so it is empty until the dataset is ready.",
            "items": {
              "$ref": "#/components/schemas/DatasetWarning"
            },
            "title": "Warnings",
            "type": "array"
          }
        },
        "required": [
          "id",
          "user_id",
          "dataset_name",
          "dataset_path",
          "dataset_type",
          "created_at",
          "updated_at"
        ],
        "title": "DatasetResponse",
        "type": "object"
      },
      "DatasetUploadProcessRequest": {
        "description": "Request to process uploaded dataset from S3.",
        "properties": {
          "dataset_id": {
            "description": "Dataset ID from upload/url response (all metadata stored in DB)",
            "title": "Dataset Id",
            "type": "string"
          }
        },
        "required": [
          "dataset_id"
        ],
        "title": "DatasetUploadProcessRequest",
        "type": "object"
      },
      "DatasetUploadUrlRequest": {
        "description": "Request to get presigned URL for dataset upload (bypasses API Gateway limits).",
        "properties": {
          "column_mapping": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Column mapping from source to standard names (e.g., {\"sentence\": \"text\", \"category\": \"label\"}). Valid standard targets: text, label, labels, entities.",
            "title": "Column Mapping"
          },
          "content_length": {
            "anyOf": [
              {
                "maximum": 5368709120.0,
                "minimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Exact size in bytes of the file you will PUT, at most 5 GiB (one S3 PUT). When set, presigned_url is signed for this Content-Length, and storage refuses a body of any other size.",
            "title": "Content Length"
          },
          "dataset_name": {
            "description": "Name for the dataset, 1 to 128 characters. It must not be blank, contain '/', '\\', '<', '>' or control characters, or be '.' or '..': such a name cannot be fetched or deleted by name afterwards.",
            "maxLength": 128,
            "minLength": 1,
            "title": "Dataset Name",
            "type": "string"
          },
          "dataset_type": {
            "default": "ner",
            "description": "Type of dataset",
            "enum": [
              "classification",
              "ner",
              "custom",
              "decoder"
            ],
            "title": "Dataset Type",
            "type": "string"
          },
          "experiment_id": {
            "anyOf": [
              {
                "pattern": "(?i)^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional Experiment ID (UUID) the upload was started from. The dataset is linked to the experiment when the caller has access.",
            "title": "Experiment Id"
          },
          "filename": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Original filename (used for format detection if format not provided)",
            "title": "Filename"
          },
          "format": {
            "anyOf": [
              {
                "enum": [
                  "jsonl",
                  "csv",
                  "tsv",
                  "parquet",
                  "json"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "File format (auto-detected from filename if not provided)",
            "title": "Format"
          },
          "generation_type": {
            "anyOf": [
              {
                "const": "upload",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Public uploads are always recorded as upload. Other generation methods are assigned by server-owned workflows.",
            "title": "Generation Type"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional project ID (UUID) to assign this dataset to",
            "title": "Project Id"
          },
          "schema": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Expected schema as JSON object (e.g., {\"age\": \"Int64\", \"name\": \"Utf8\"}). Enforces column types during parsing. Valid types: Int8, Int16, Int32, Int64, UInt8-64, Float32, Float64, Utf8, Boolean, Date, Datetime, Time, Duration, Categorical, Binary",
            "title": "Schema"
          },
          "sha256": {
            "anyOf": [
              {
                "pattern": "^[0-9a-fA-F]{64}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Hex sha256 of the file you will PUT. When set, presigned_url is signed for its x-amz-checksum-sha256, and storage refuses bytes with another digest.",
            "title": "Sha256"
          },
          "split_ratio": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "number"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Split ratio when type is 'split', e.g. {'training': 0.8, 'evaluation': 0.2}",
            "title": "Split Ratio"
          },
          "type": {
            "anyOf": [
              {
                "enum": [
                  "training",
                  "evaluation",
                  "benchmark"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": "training",
            "description": "Dataset purpose: 'training' (trainable), 'evaluation' (not trainable), 'benchmark' (system-managed, evaluation-only; cannot be trained on or directly accessed).",
            "title": "Type"
          },
          "visibility": {
            "anyOf": [
              {
                "enum": [
                  "private",
                  "public"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": "private",
            "description": "Dataset visibility: 'private' (owner only) or 'public' (anyone can see)",
            "title": "Visibility"
          }
        },
        "required": [
          "dataset_name"
        ],
        "title": "DatasetUploadUrlRequest",
        "type": "object"
      },
      "DatasetUploadUrlResponse": {
        "description": "Response with presigned S3 URL for direct upload.",
        "properties": {
          "dataset_id": {
            "description": "Dataset ID for subsequent processing",
            "title": "Dataset Id",
            "type": "string"
          },
          "dataset_name": {
            "description": "Dataset name (for polling status via GET /{name}/{version})",
            "title": "Dataset Name",
            "type": "string"
          },
          "expires_in": {
            "description": "URL expiration time in seconds",
            "title": "Expires In",
            "type": "integer"
          },
          "presigned_url": {
            "description": "S3 presigned URL for PUT upload",
            "title": "Presigned Url",
            "type": "string"
          },
          "upload_headers": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Headers the PUT to presigned_url must send, with exactly these values. They are part of the URL's signature, so storage answers 403 when one is missing or different. Always holds Content-Type: application/octet-stream; also Content-Length and x-amz-checksum-sha256 when the request declared content_length and sha256. Most HTTP clients set Content-Length from the body.",
            "title": "Upload Headers",
            "type": "object"
          },
          "upload_instructions": {
            "default": "PUT the raw file bytes to presigned_url and send every header in upload_headers with exactly its value: always Content-Type: application/octet-stream, plus Content-Length and x-amz-checksum-sha256 when listed. A missing or different header is refused with 403. Then call POST /datasets/upload/process with dataset_id.",
            "description": "Instructions for completing the upload",
            "title": "Upload Instructions",
            "type": "string"
          },
          "version_number": {
            "description": "Version number for this dataset",
            "title": "Version Number",
            "type": "string"
          }
        },
        "required": [
          "presigned_url",
          "dataset_id",
          "dataset_name",
          "version_number",
          "expires_in",
          "upload_headers"
        ],
        "title": "DatasetUploadUrlResponse",
        "type": "object"
      },
      "DatasetVersionsResponse": {
        "description": "List of all versions of a dataset",
        "properties": {
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          },
          "versions": {
            "items": {
              "$ref": "#/components/schemas/DatasetResponse"
            },
            "title": "Versions",
            "type": "array"
          }
        },
        "required": [
          "success",
          "versions",
          "count"
        ],
        "title": "DatasetVersionsResponse",
        "type": "object"
      },
      "DatasetWarning": {
        "description": "One reason a dataset will not train well on its own.",
        "properties": {
          "code": {
            "description": "Machine-readable warning code",
            "enum": [
              "too_few_rows",
              "single_class",
              "too_many_labels"
            ],
            "title": "Code",
            "type": "string"
          },
          "message": {
            "description": "What is wrong, and what training does with it",
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "DatasetWarning",
        "type": "object"
      },
      "Datum": {
        "additionalProperties": false,
        "description": "One training example: N input tokens and per-position loss inputs (Tinker's definition).",
        "properties": {
          "loss_fn_inputs": {
            "additionalProperties": {
              "$ref": "#/components/schemas/TensorData"
            },
            "title": "Loss Fn Inputs",
            "type": "object"
          },
          "model_input": {
            "$ref": "#/components/schemas/ModelInput"
          }
        },
        "required": [
          "model_input"
        ],
        "title": "Datum",
        "type": "object"
      },
      "DecisionDatum": {
        "additionalProperties": false,
        "description": "One GLiDE training or evaluation row: a System One state and question, and its targets.",
        "properties": {
          "gold": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The correct option: a choice key, `true`/`false` for noul, or the level index (`\"0\"`...) for score.",
            "title": "Gold"
          },
          "question": {
            "discriminator": {
              "mapping": {
                "choice": "#/components/schemas/ChoiceQuestion",
                "noul": "#/components/schemas/NoulQuestion",
                "score": "#/components/schemas/ScoreQuestion"
              },
              "propertyName": "type"
            },
            "oneOf": [
              {
                "$ref": "#/components/schemas/NoulQuestion"
              },
              {
                "$ref": "#/components/schemas/ChoiceQuestion"
              },
              {
                "$ref": "#/components/schemas/ScoreQuestion"
              }
            ],
            "title": "Question"
          },
          "soft_target": {
            "anyOf": [
              {
                "additionalProperties": {
                  "minimum": 0.0,
                  "type": "number"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Option -> probability mass to distil (normalised over the options; positive in total).",
            "title": "Soft Target"
          },
          "state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonValue-Input"
                },
                "type": "object"
              },
              {
                "items": {
                  "$ref": "#/components/schemas/JsonValue-Input"
                },
                "type": "array"
              }
            ],
            "description": "The situation, as `POST /v1/systemone` takes it (text only for training).",
            "title": "State"
          },
          "weight": {
            "default": 1.0,
            "description": "The row's weight in the summed loss (Tinker's convention: give each row 1/rows to average a step).",
            "minimum": 0.0,
            "title": "Weight",
            "type": "number"
          }
        },
        "required": [
          "state",
          "question"
        ],
        "title": "DecisionDatum",
        "type": "object"
      },
      "DeleteTrainingJobResponse": {
        "description": "Response model for deleting a training job",
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "message"
        ],
        "title": "DeleteTrainingJobResponse",
        "type": "object"
      },
      "DeployCheckpointRequest": {
        "additionalProperties": false,
        "description": "``POST .../checkpoints/sampler_weights/{name}/deploy``.",
        "properties": {
          "model_name": {
            "anyOf": [
              {
                "maxLength": 64,
                "pattern": "^[a-zA-Z0-9]([a-zA-Z0-9_-]*[a-zA-Z0-9])?$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The trained model's name (alphanumerics, hyphens, underscores); derived from the checkpoint when absent.",
            "title": "Model Name"
          },
          "system_prompt": {
            "anyOf": [
              {
                "maxLength": 1000000,
                "pattern": "\\S",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The system message the checkpoint was trained with, sent first when a caller sends none. Set once: another one for the same checkpoint is a 409.",
            "title": "System Prompt"
          }
        },
        "title": "DeployCheckpointRequest",
        "type": "object"
      },
      "DeployCheckpointResponse": {
        "description": "Response after deploying a checkpoint",
        "properties": {
          "checkpoint_id": {
            "title": "Checkpoint Id",
            "type": "string"
          },
          "deployment_path": {
            "description": "Exact immutable adapter prefix or full-model MME object deployed.",
            "title": "Deployment Path",
            "type": "string"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "mme_path": {
            "deprecated": true,
            "description": "Deprecated compatibility alias for deployment_path.",
            "title": "Mme Path",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "message",
          "job_id",
          "checkpoint_id",
          "deployment_path",
          "mme_path"
        ],
        "title": "DeployCheckpointResponse",
        "type": "object"
      },
      "DeployedCheckpoint": {
        "description": "A sampler checkpoint as a trained model: call it with `model=<model_id>` or deploy it to a project.",
        "properties": {
          "base_model": {
            "title": "Base Model",
            "type": "string"
          },
          "checkpoint_id": {
            "title": "Checkpoint Id",
            "type": "string"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "model_id": {
            "description": "The trained model's id (`POST /v1/projects/{project_id}/deployments`).",
            "title": "Model Id",
            "type": "string"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "status": {
            "description": "`deploying` while the adapter is staged and the serving engine warms up.",
            "enum": [
              "deploying",
              "deployed"
            ],
            "title": "Status",
            "type": "string"
          },
          "system_prompt": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The system message sent first when a caller sends none.",
            "title": "System Prompt"
          }
        },
        "required": [
          "model_id",
          "job_id",
          "checkpoint_id",
          "base_model",
          "project_id",
          "status"
        ],
        "title": "DeployedCheckpoint",
        "type": "object"
      },
      "DeploymentHistoryResponse": {
        "description": "Paginated list of deployment history records, newest first.",
        "properties": {
          "deployments": {
            "items": {
              "$ref": "#/components/schemas/DeploymentResponse"
            },
            "title": "Deployments",
            "type": "array"
          }
        },
        "required": [
          "deployments"
        ],
        "title": "DeploymentHistoryResponse",
        "type": "object"
      },
      "DeploymentResponse": {
        "description": "A single deployment history record.\n\nA deployment targets exactly one of ``training_job_id`` or\n``base_model``: the trained adapter that was activated, or the base\ncatalog model that was activated when no adapter is in use.\n\nThe four evidence fields are null for a promotion nobody recorded evidence\nfor -- a human pressing promote, or the post-training auto-deploy. They are\nreturned so the basis for a swap is readable after the fact rather than only\nat the moment it happens.",
        "properties": {
          "base_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Base Model"
          },
          "deployed_at": {
            "format": "date-time",
            "title": "Deployed At",
            "type": "string"
          },
          "deployed_by": {
            "title": "Deployed By",
            "type": "string"
          },
          "experiment_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Experiment Id"
          },
          "finetune_plan_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Finetune Plan Id"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "project_id": {
            "title": "Project Id",
            "type": "string"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Reason"
          },
          "recipe_fingerprint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Recipe Fingerprint"
          },
          "selection_evaluation_run_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Selection Evaluation Run Id"
          },
          "training_job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Training Job Id"
          }
        },
        "required": [
          "id",
          "project_id",
          "deployed_by",
          "reason",
          "deployed_at"
        ],
        "title": "DeploymentResponse",
        "type": "object"
      },
      "EncodedTextChunk": {
        "additionalProperties": false,
        "description": "Token ids of a text chunk (image and audio chunks are refused at the gateway).",
        "properties": {
          "tokens": {
            "items": {
              "type": "integer"
            },
            "title": "Tokens",
            "type": "array"
          },
          "type": {
            "const": "encoded_text",
            "default": "encoded_text",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "tokens"
        ],
        "title": "EncodedTextChunk",
        "type": "object"
      },
      "FastinoExtension": {
        "description": "Fastino-specific extension fields appended to OpenAI-compatible responses.\n\nOpenAI's API contract reserves the unprefixed top-level keys (``id``,\n``choices``, ``usage``, …); custom data must live under a clearly\nnamespaced key. ``x_fastino`` is that key.",
        "properties": {
          "default_schema_applied": {
            "default": false,
            "title": "Default Schema Applied",
            "type": "boolean"
          },
          "inference_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Inference Id"
          },
          "truncated": {
            "default": false,
            "title": "Truncated",
            "type": "boolean"
          }
        },
        "title": "FastinoExtension",
        "type": "object"
      },
      "ForwardBody": {
        "additionalProperties": false,
        "description": "``POST .../forward`` and ``.../forward-backward``: token-level datums as in Tinker, or GLiDE decision rows.",
        "properties": {
          "datums": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/Datum"
                },
                "minItems": 1,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Datums"
          },
          "decisions": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/DecisionDatum"
                },
                "maxItems": 512,
                "minItems": 1,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiDE (`fastino/GLiDE`) jobs: decision rows instead of `datums`, at most 512.",
            "title": "Decisions"
          },
          "loss_fn": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "cross_entropy (default), importance_sampling, ppo, cispo or dro; for GLiDE glide_decision (config `ce_weight` 0.3, `kl_weight` 0.7: per row ce_weight x CE(gold) + kl_weight x KL(soft_target || p)).",
            "title": "Loss Fn"
          },
          "loss_fn_config": {
            "anyOf": [
              {
                "additionalProperties": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "string"
                    }
                  ]
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Loss Fn Config"
          }
        },
        "title": "ForwardBody",
        "type": "object"
      },
      "FutureAccepted": {
        "description": "A queued call: read its result at ``GET /v1/training/jobs/{job_id}/futures/{future_id}``.",
        "properties": {
          "future_id": {
            "title": "Future Id",
            "type": "string"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "type": {
            "description": "The call: create, load, forward, forward_backward, optim_step, save, sample.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "future_id",
          "job_id",
          "type"
        ],
        "title": "FutureAccepted",
        "type": "object"
      },
      "FutureError": {
        "description": "Why a call failed: ``user`` (the request) or ``server`` (ours).",
        "properties": {
          "category": {
            "title": "Category",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "message",
          "category"
        ],
        "title": "FutureError",
        "type": "object"
      },
      "GlinerJobStatus": {
        "description": "Response from job status check.",
        "properties": {
          "completed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "error": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "notice": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Set with Zero Data Retention: the result is returned once and then deleted, and an unread result is deleted 24 hours after the job finishes.",
            "title": "Notice"
          },
          "result": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "items": {},
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Result"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "token_usage": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Token Usage"
          }
        },
        "required": [
          "job_id",
          "status",
          "created_at"
        ],
        "title": "GlinerJobStatus",
        "type": "object"
      },
      "GlinerRequest": {
        "description": "Request for GLiNER-2 processing (sync).",
        "properties": {
          "format_results": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": true,
            "title": "Format Results"
          },
          "include_confidence": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": true,
            "title": "Include Confidence"
          },
          "include_spans": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": true,
            "title": "Include Spans"
          },
          "schema": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "additionalProperties": true,
                "type": "object"
              }
            ],
            "description": "Extraction schema. The flat ``list[str]`` of entity labels is deprecated; use the unified dict shape (``entities`` / ``classifications`` / ``structures`` / ``relations``) for forward compatibility. Deprecated submissions emit ``Deprecation: true`` and ``Sunset: <RFC 7231 date>`` headers.",
            "title": "Schema"
          },
          "task": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Deprecated** legacy task hint. One of: 'extract_entities', 'classify_text', 'extract_json', 'schema'. Omit for the unified GLiNER2 path. Submitting a legacy task value still succeeds but the response carries ``Deprecation: true`` and a ``Sunset`` header.",
            "title": "Task"
          },
          "text": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              }
            ],
            "title": "Text"
          },
          "threshold": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "default": 0.5,
            "title": "Threshold"
          },
          "truncate_overflow_text": {
            "default": false,
            "description": "Encoder (GLiNER) models only. When the text is longer than the model's max_input_tokens, cut it to fit instead of rejecting the request with input_too_long. Off by default. A response whose input was cut reports x_fastino.truncated: true; entities past the cut are not returned. Token usage still counts the full submitted text. Texts over 50,000 characters are rejected before truncation applies. Applies to base, LoRA and full fine-tuned encoder models; the schema shares the token budget.",
            "title": "Truncate Overflow Text",
            "type": "boolean"
          }
        },
        "required": [
          "text",
          "schema"
        ],
        "title": "GlinerRequest",
        "type": "object"
      },
      "GlinerResponse": {
        "description": "Response from GLiNER-2 processing.",
        "properties": {
          "result": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "items": {},
                "type": "array"
              }
            ],
            "title": "Result"
          },
          "token_usage": {
            "title": "Token Usage",
            "type": "integer"
          },
          "x_fastino": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FastinoExtension"
              },
              {
                "type": "null"
              }
            ],
            "description": "Fastino extension fields. Present only when the input was truncated."
          }
        },
        "required": [
          "result",
          "token_usage"
        ],
        "title": "GlinerResponse",
        "type": "object"
      },
      "HTTPValidationError": {
        "description": "OpenAI error envelope returned for request validation failures. Replaces FastAPI's default HTTPValidationError `{detail: [...]}`.",
        "properties": {
          "error": {
            "properties": {
              "code": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Code"
              },
              "errors": {
                "description": "Structured validation entries (location, type, line/column).",
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "title": "Errors",
                "type": "array"
              },
              "message": {
                "title": "Message",
                "type": "string"
              },
              "param": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Param"
              },
              "type": {
                "title": "Type",
                "type": "string"
              }
            },
            "required": [
              "message",
              "type",
              "param",
              "code"
            ],
            "title": "Error",
            "type": "object"
          }
        },
        "required": [
          "error"
        ],
        "title": "HTTPValidationError",
        "type": "object"
      },
      "HuggingFacePushModelRequest": {
        "description": "Request to push a trained model to HuggingFace Hub",
        "properties": {
          "commit_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional commit message for the push",
            "title": "Commit Message"
          },
          "hf_token": {
            "description": "HuggingFace API token with write permissions",
            "title": "Hf Token",
            "type": "string"
          },
          "private": {
            "default": true,
            "description": "Whether repo should be private",
            "title": "Private",
            "type": "boolean"
          },
          "repo_id": {
            "description": "HuggingFace repo ID (e.g., 'username/model-name')",
            "title": "Repo Id",
            "type": "string"
          }
        },
        "required": [
          "repo_id",
          "hf_token"
        ],
        "title": "HuggingFacePushModelRequest",
        "type": "object"
      },
      "ImageContentBlock": {
        "description": "Anthropic image content block.",
        "properties": {
          "source": {
            "$ref": "#/components/schemas/ImageSource"
          },
          "type": {
            "const": "image",
            "default": "image",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "source"
        ],
        "title": "ImageContentBlock",
        "type": "object"
      },
      "ImageSource": {
        "description": "Anthropic image source (base64 or HTTPS URL).",
        "properties": {
          "data": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Data"
          },
          "media_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Media Type"
          },
          "type": {
            "enum": [
              "base64",
              "url"
            ],
            "title": "Type",
            "type": "string"
          },
          "url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Url"
          }
        },
        "required": [
          "type"
        ],
        "title": "ImageSource",
        "type": "object"
      },
      "InferenceFeedbackRequest": {
        "description": "Human feedback to submit for a specific inference.",
        "properties": {
          "corrected_output": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "description": "Expected output for incorrect verdicts (JSON structure matching task output)",
            "title": "Corrected Output"
          },
          "notes": {
            "anyOf": [
              {
                "maxLength": 5000,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional reviewer notes",
            "title": "Notes"
          },
          "verdict": {
            "description": "Human judgment: 'correct' or 'incorrect'",
            "enum": [
              "correct",
              "incorrect"
            ],
            "title": "Verdict",
            "type": "string"
          }
        },
        "required": [
          "verdict"
        ],
        "title": "InferenceFeedbackRequest",
        "type": "object"
      },
      "InferenceFeedbackResponse": {
        "description": "Stored human feedback for a specific inference.",
        "properties": {
          "human_feedback_at": {
            "description": "When the feedback was submitted",
            "format": "date-time",
            "title": "Human Feedback At",
            "type": "string"
          },
          "human_feedback_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "User ID of the member who submitted this feedback. Null for feedback recorded before authorship was tracked.",
            "title": "Human Feedback By"
          },
          "human_verdict": {
            "description": "Stored human verdict",
            "title": "Human Verdict",
            "type": "string"
          },
          "inference_id": {
            "description": "Inference ID that was annotated",
            "title": "Inference Id",
            "type": "string"
          }
        },
        "required": [
          "inference_id",
          "human_verdict",
          "human_feedback_at"
        ],
        "title": "InferenceFeedbackResponse",
        "type": "object"
      },
      "InferenceListResponse": {
        "description": "Response for listing inference history.",
        "properties": {
          "inferences": {
            "description": "List of inference records",
            "items": {
              "$ref": "#/components/schemas/InferenceRecord"
            },
            "title": "Inferences",
            "type": "array"
          },
          "limit": {
            "description": "Page size limit",
            "title": "Limit",
            "type": "integer"
          },
          "offset": {
            "description": "Current offset",
            "title": "Offset",
            "type": "integer"
          },
          "total": {
            "description": "Total count of inferences matching filters",
            "title": "Total",
            "type": "integer"
          }
        },
        "required": [
          "inferences",
          "total",
          "limit",
          "offset"
        ],
        "title": "InferenceListResponse",
        "type": "object"
      },
      "InferenceRecord": {
        "description": "Stored inference record.",
        "properties": {
          "base_model": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "HuggingFace base model ID",
            "title": "Base Model"
          },
          "cache_read_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Input tokens served from the provider prompt cache (cache hit).",
            "title": "Cache Read Tokens"
          },
          "cache_write_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Input tokens written into the provider prompt cache (cache creation). Zero for providers that bill writes as plain input.",
            "title": "Cache Write Tokens"
          },
          "created_at": {
            "description": "When the inference was made",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "error_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Error detail when status is failed",
            "title": "Error Message"
          },
          "error_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Failure category when status is failed (validation, timeout, model_not_ready, model_not_found, model_not_supported, capacity_exhausted, internal)",
            "title": "Error Type"
          },
          "human_corrected_output": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "description": "Expected output from human reviewer",
            "title": "Human Corrected Output"
          },
          "human_feedback_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When human feedback was submitted",
            "title": "Human Feedback At"
          },
          "human_feedback_by": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "User ID of the member who submitted the current human feedback",
            "title": "Human Feedback By"
          },
          "human_feedback_notes": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional reviewer notes",
            "title": "Human Feedback Notes"
          },
          "human_verdict": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Human reviewer verdict (correct/incorrect)",
            "title": "Human Verdict"
          },
          "id": {
            "description": "Unique inference ID",
            "title": "Id",
            "type": "string"
          },
          "input": {
            "description": "Input text",
            "title": "Input",
            "type": "string"
          },
          "input_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Non-cached input/prompt tokens, sourced from the metered requests row. None when no billing row was recorded.",
            "title": "Input Tokens"
          },
          "latency_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "End-to-end latency in milliseconds",
            "title": "Latency Ms"
          },
          "llmaj_judged_at": {
            "anyOf": [
              {
                "format": "date-time",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Timestamp when LLMAJ judgment was recorded; None until judged.",
            "title": "Llmaj Judged At"
          },
          "llmaj_reasoning": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "LLMAJ judge reasoning/explanation; None until judged.",
            "title": "Llmaj Reasoning"
          },
          "llmaj_score": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Historical LLMAJ confidence score in [0.0, 1.0].",
            "title": "Llmaj Score"
          },
          "llmaj_verdict": {
            "anyOf": [
              {
                "enum": [
                  "pass",
                  "fail",
                  "uncertain"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Historical LLMAJ verdict ('pass', 'fail', or 'uncertain').",
            "title": "Llmaj Verdict"
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Extensible metadata (e.g. LLM judge results)",
            "title": "Metadata"
          },
          "model_id": {
            "description": "Model ID used for inference",
            "title": "Model Id",
            "type": "string"
          },
          "model_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Human-readable model name",
            "title": "Model Name"
          },
          "output": {
            "anyOf": [
              {},
              {
                "type": "null"
              }
            ],
            "description": "Inference output (JSON)",
            "title": "Output"
          },
          "output_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Output/completion tokens, sourced from the metered requests row.",
            "title": "Output Tokens"
          },
          "payload_unavailable": {
            "default": false,
            "description": "True when the full stored payload for this inference could not be found. `input` is then empty, and `output` and offloaded metadata such as tool definitions are absent. No preview of the input is returned in its place.",
            "title": "Payload Unavailable",
            "type": "boolean"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Project ID the model belongs to",
            "title": "Project Id"
          },
          "provider": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Inference provider (aws, modal, etc.). Rows predating a provider removal carry an 'archived_<provider>' label.",
            "title": "Provider"
          },
          "source": {
            "default": "api",
            "description": "Source of the request (api or ui)",
            "title": "Source",
            "type": "string"
          },
          "status": {
            "default": "success",
            "description": "Inference status: success or failed",
            "title": "Status",
            "type": "string"
          },
          "task": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Task type (legacy; may be NULL for new inferences)",
            "title": "Task"
          },
          "tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Token count",
            "title": "Tokens"
          },
          "training_job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Training job UUID that produced the model",
            "title": "Training Job Id"
          },
          "ttft_ms": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Streaming time to first visible output chunk in milliseconds; null for non-streaming calls and streams with no visible payload.",
            "title": "Ttft Ms"
          },
          "user_id": {
            "description": "User who made the inference",
            "title": "User Id",
            "type": "string"
          }
        },
        "required": [
          "id",
          "user_id",
          "model_id",
          "input",
          "created_at"
        ],
        "title": "InferenceRecord",
        "type": "object"
      },
      "InteractiveJobView": {
        "description": "An ``interactive`` training job: a Tinker training run, its run id being the job id.",
        "properties": {
          "base_model": {
            "title": "Base Model",
            "type": "string"
          },
          "corrupted": {
            "default": false,
            "title": "Corrupted",
            "type": "boolean"
          },
          "created_at": {
            "description": "When the job was created; the job list is newest first across both types.",
            "format": "date-time",
            "title": "Created At",
            "type": "string"
          },
          "error_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why creating the job failed, when `status` is `failed`. When the platform's training loop driving the job (the agent's `train_decoder`) stopped it on an error, that error's code: `checkpoint_save_failed` (its final checkpoint could not be saved). Null otherwise.",
            "title": "Error Message"
          },
          "id": {
            "description": "The job's id, the same value as `job_id`: the field a config job's id is in, so one field reads both.",
            "title": "Id",
            "type": "string"
          },
          "is_lora": {
            "default": true,
            "title": "Is Lora",
            "type": "boolean"
          },
          "is_terminal_status": {
            "description": "Whether `status` is final (`stopped` or `failed`), so a polling loop can stop.",
            "title": "Is Terminal Status",
            "type": "boolean"
          },
          "job_id": {
            "description": "The job's id, the same value as `training_run_id`: the `job_id` that create-model returned and that every /v1/training/jobs/{job_id} route takes.",
            "title": "Job Id",
            "type": "string"
          },
          "last_checkpoint": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CheckpointView"
              },
              {
                "type": "null"
              }
            ]
          },
          "last_request_time": {
            "format": "date-time",
            "title": "Last Request Time",
            "type": "string"
          },
          "last_sampler_checkpoint": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/CheckpointView"
              },
              {
                "type": "null"
              }
            ]
          },
          "lora_rank": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Lora Rank"
          },
          "model_owner": {
            "title": "Model Owner",
            "type": "string"
          },
          "status": {
            "description": "`creating`: its adapter is being created. `active`: it takes training and sampling calls. `stopping`: a stop was requested or its session ended, and calls already queued are finishing before its adapter is released; it takes no new training calls. `stopped`: its adapter is released and its checkpoints are kept. `failed`: creating it failed, see `error_message`.",
            "enum": [
              "creating",
              "active",
              "stopping",
              "stopped",
              "failed"
            ],
            "title": "Status",
            "type": "string"
          },
          "stop_reason": {
            "anyOf": [
              {
                "enum": [
                  "requested",
                  "idle_timeout",
                  "session_finished",
                  "session_errored"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why a `stopping` or `stopped` job stopped; null in any other status, and for a copy of a checkpoint made through the SDK (which never trained). `requested`: an explicit job stop, the SDK's `unload_model` (`unloaded`), or cancellation of the agent task that owned the job. `idle_timeout`: its session went idle (no call for 30 minutes on a job created through this API, no SDK heartbeat for 5 minutes on an SDK session). `session_finished`: the SDK client finished cleanly (`success`) or supplied a custom/unmapped finish reason. `session_errored`: a known SDK error or interruption (`errored` or `interrupted`), job creation failed (`create_failed`), or the job's training loop supplied the known `checkpoint_save_failed` error code.",
            "title": "Stop Reason"
          },
          "training_run_id": {
            "title": "Training Run Id",
            "type": "string"
          },
          "type": {
            "const": "interactive",
            "default": "interactive",
            "title": "Type",
            "type": "string"
          },
          "user_metadata": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Metadata"
          }
        },
        "required": [
          "training_run_id",
          "base_model",
          "model_owner",
          "last_request_time",
          "id",
          "job_id",
          "created_at",
          "status",
          "is_terminal_status"
        ],
        "title": "InteractiveJobView",
        "type": "object"
      },
      "JsonObject-Output": {
        "additionalProperties": {
          "$ref": "#/components/schemas/JsonValue-Output"
        },
        "type": "object"
      },
      "JsonScalar": {
        "anyOf": [
          {
            "type": "string"
          },
          {
            "type": "integer"
          },
          {
            "type": "number"
          },
          {
            "type": "boolean"
          },
          {
            "type": "null"
          }
        ]
      },
      "JsonValue-Input": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/JsonScalar"
          },
          {
            "items": {
              "$ref": "#/components/schemas/JsonValue-Input"
            },
            "type": "array"
          },
          {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue-Input"
            },
            "type": "object"
          }
        ]
      },
      "JsonValue-Output": {
        "anyOf": [
          {
            "$ref": "#/components/schemas/JsonScalar"
          },
          {
            "items": {
              "$ref": "#/components/schemas/JsonValue-Output"
            },
            "type": "array"
          },
          {
            "additionalProperties": {
              "$ref": "#/components/schemas/JsonValue-Output"
            },
            "type": "object"
          }
        ]
      },
      "LoadWeightsBody": {
        "additionalProperties": false,
        "description": "``POST .../load-weights``: restore one of the job's saved training states.",
        "properties": {
          "optimizer": {
            "default": false,
            "description": "Also restore the optimizer state.",
            "title": "Optimizer",
            "type": "boolean"
          },
          "path": {
            "description": "The state's name, or its `tinker://<job_id>/weights/<name>` path (this job's own).",
            "title": "Path",
            "type": "string"
          }
        },
        "required": [
          "path"
        ],
        "title": "LoadWeightsBody",
        "type": "object"
      },
      "LoraConfig": {
        "additionalProperties": false,
        "description": "LoRA settings of a new training run.",
        "properties": {
          "rank": {
            "default": 32,
            "title": "Rank",
            "type": "integer"
          },
          "seed": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Seed"
          },
          "train_attn": {
            "default": true,
            "title": "Train Attn",
            "type": "boolean"
          },
          "train_mlp": {
            "default": true,
            "title": "Train Mlp",
            "type": "boolean"
          },
          "train_unembed": {
            "default": true,
            "title": "Train Unembed",
            "type": "boolean"
          }
        },
        "title": "LoraConfig",
        "type": "object"
      },
      "ModelCallingUsage": {
        "properties": {
          "contract_kind": {
            "anyOf": [
              {
                "enum": [
                  "gliner2",
                  "chat"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Contract Kind"
          },
          "example_request": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonValue-Output"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Example Request"
          },
          "guidance": {
            "default": "",
            "title": "Guidance",
            "type": "string"
          },
          "inference_schema": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonValue-Output"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Inference Schema"
          },
          "label_descriptions": {
            "anyOf": [
              {
                "additionalProperties": {
                  "additionalProperties": {
                    "type": "string"
                  },
                  "type": "object"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Label Descriptions"
          },
          "source": {
            "anyOf": [
              {
                "enum": [
                  "training_validation",
                  "legacy_metadata"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Source"
          },
          "status": {
            "enum": [
              "captured",
              "not_recorded",
              "unknown",
              "too_large"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "contract_kind",
          "status"
        ],
        "title": "ModelCallingUsage",
        "type": "object"
      },
      "ModelDownloadResponse": {
        "description": "Response with presigned URL for model download",
        "properties": {
          "download_url": {
            "title": "Download Url",
            "type": "string"
          },
          "expires_in_seconds": {
            "default": 3600,
            "title": "Expires In Seconds",
            "type": "integer"
          },
          "file_name": {
            "title": "File Name",
            "type": "string"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "message": {
            "default": "Download URL generated successfully",
            "title": "Message",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "job_id",
          "download_url",
          "file_name"
        ],
        "title": "ModelDownloadResponse",
        "type": "object"
      },
      "ModelInput": {
        "additionalProperties": false,
        "description": "A token sequence made of text chunks.",
        "properties": {
          "chunks": {
            "items": {
              "$ref": "#/components/schemas/EncodedTextChunk"
            },
            "title": "Chunks",
            "type": "array"
          }
        },
        "title": "ModelInput",
        "type": "object"
      },
      "ModelStatusResponse": {
        "description": "Whether a model can answer inference now, and when to ask again.",
        "properties": {
          "model": {
            "description": "The model as the caller named it.",
            "title": "Model",
            "type": "string"
          },
          "retry_after_seconds": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "How long to wait before asking again; null when the model is ready.",
            "title": "Retry After Seconds"
          },
          "state": {
            "description": "ready: an inference call is served now. starting: a wake-up is running; poll again after retry_after_seconds. cold: nothing is running; call the warm endpoint, or send a request, to start one. starting and cold are as seen by the API server that answered; another server may already be starting the model.",
            "enum": [
              "ready",
              "starting",
              "cold"
            ],
            "title": "State",
            "type": "string"
          },
          "warming_for_seconds": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "How long the API server that answered has answered inference calls for this model as warming up. Null when the model is ready or that server has not answered cold.",
            "title": "Warming For Seconds"
          }
        },
        "required": [
          "model",
          "state"
        ],
        "title": "ModelStatusResponse",
        "type": "object"
      },
      "NoulAnswer": {
        "additionalProperties": false,
        "description": "Probability that the noul question's true option holds.",
        "properties": {
          "confidence": {
            "description": "`|2 * noul - 1|`: `0` at maximum uncertainty, `1` when certain.",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence",
            "type": "number"
          },
          "noul": {
            "description": "Probability that the `true` criterion holds. Not a boolean.",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Noul",
            "type": "number"
          },
          "type": {
            "const": "noul",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "noul",
          "confidence"
        ],
        "title": "Noul answer",
        "type": "object"
      },
      "NoulCriteria": {
        "additionalProperties": false,
        "description": "Yes and no labels for a noul question.",
        "properties": {
          "false": {
            "default": "No",
            "description": "The opposite outcome.",
            "title": "False",
            "type": "string"
          },
          "true": {
            "default": "Yes",
            "description": "The outcome whose probability `noul` returns.",
            "title": "True",
            "type": "string"
          }
        },
        "title": "NoulCriteria",
        "type": "object"
      },
      "NoulQuestion": {
        "additionalProperties": false,
        "description": "A yes/no question answered with the probability that `true` holds.",
        "properties": {
          "criteria": {
            "$ref": "#/components/schemas/NoulCriteria",
            "description": "Optional labels for the two outcomes. Defaults to Yes and No."
          },
          "instructions": {
            "description": "The question to answer about `state`. A JSON object is accepted and sent as its compact JSON text.",
            "minLength": 1,
            "title": "Instructions",
            "type": "string"
          },
          "type": {
            "const": "noul",
            "description": "`noul` for a yes/no question.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "instructions"
        ],
        "title": "Noul",
        "type": "object"
      },
      "OptimStepBody": {
        "additionalProperties": false,
        "description": "``POST .../optim-step``: Adam parameters (Tinker's defaults when omitted).",
        "properties": {
          "adam_params": {
            "$ref": "#/components/schemas/AdamParams"
          }
        },
        "title": "OptimStepBody",
        "type": "object"
      },
      "OptimizerConfig": {
        "additionalProperties": false,
        "description": "Optimizer family chosen at creation (only ``adamw`` is served).",
        "properties": {
          "type": {
            "default": "adamw",
            "title": "Type",
            "type": "string"
          }
        },
        "title": "OptimizerConfig",
        "type": "object"
      },
      "PromptTokensDetails": {
        "description": "Per-input-class breakdown for OpenAI-shape usage payloads.\n\nMirrors OpenAI's ``prompt_tokens_details`` block and the industry\ncache-creation extension so clients reading\n``usage.prompt_tokens_details.cached_tokens`` /\n``cache_write_tokens`` keep working when Fastino relays a cache-aware\nupstream response. Both counts are subsets of ``prompt_tokens`` on the\nwire — that's the upstream contract Fastino relays faithfully.",
        "properties": {
          "cache_write_tokens": {
            "default": 0,
            "title": "Cache Write Tokens",
            "type": "integer"
          },
          "cached_tokens": {
            "default": 0,
            "title": "Cached Tokens",
            "type": "integer"
          }
        },
        "title": "PromptTokensDetails",
        "type": "object"
      },
      "PushModelToHubResponse": {
        "description": "Response model for pushing model to HuggingFace Hub",
        "properties": {
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "repo_id": {
            "title": "Repo Id",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          },
          "url": {
            "title": "Url",
            "type": "string"
          }
        },
        "required": [
          "success",
          "url",
          "repo_id",
          "job_id",
          "message"
        ],
        "title": "PushModelToHubResponse",
        "type": "object"
      },
      "ResponsesReasoningRequest": {
        "additionalProperties": true,
        "description": "Opt-in reasoning controls in OpenAI Responses format.",
        "properties": {
          "effort": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional reasoning effort hint, such as 'low', 'medium', or 'high'.",
            "title": "Effort"
          },
          "enabled": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Switch for enabling reasoning on capable models.",
            "title": "Enabled"
          },
          "exclude": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "When supported by the upstream provider, exclude reasoning text from the response while still allowing the model to use reasoning.",
            "title": "Exclude"
          },
          "summary": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional Responses-style reasoning summary mode.",
            "title": "Summary"
          }
        },
        "title": "ResponsesReasoningRequest",
        "type": "object"
      },
      "ResponsesRequest": {
        "additionalProperties": true,
        "description": "OpenAI-compatible Responses API request.\n\n``input`` accepts either a plain string (convenience shorthand used by the\nOpenAI SDK for simple text prompts) or a list of input items.",
        "properties": {
          "extra_body": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Extra Body"
          },
          "extra_headers": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Extra Headers"
          },
          "include": {
            "items": {
              "type": "string"
            },
            "title": "Include",
            "type": "array"
          },
          "include_confidence": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": true,
            "title": "Include Confidence"
          },
          "include_spans": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "default": true,
            "title": "Include Spans"
          },
          "input": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "additionalProperties": true,
                  "type": "object"
                },
                "type": "array"
              }
            ],
            "title": "Input"
          },
          "instructions": {
            "default": "",
            "title": "Instructions",
            "type": "string"
          },
          "max_output_tokens": {
            "anyOf": [
              {
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Output Tokens"
          },
          "metadata": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Metadata"
          },
          "model": {
            "title": "Model",
            "type": "string"
          },
          "parallel_tool_calls": {
            "default": false,
            "title": "Parallel Tool Calls",
            "type": "boolean"
          },
          "previous_response_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Fastino inference ID or stored Responses wire ID to continue from. When present, Fastino reconstructs the prior turn from inference history and prepends it to the new input.",
            "title": "Previous Response Id"
          },
          "prompt_cache_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Prompt Cache Key"
          },
          "reasoning": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ResponsesReasoningRequest"
              },
              {
                "type": "null"
              }
            ]
          },
          "service_tier": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Service Tier"
          },
          "store": {
            "default": true,
            "description": "Whether to store response state for turn-to-turn continuation. When true, Fastino preserves the response for previous_response_id replay, including available tool-call and reasoning context.",
            "title": "Store",
            "type": "boolean"
          },
          "stream": {
            "default": false,
            "title": "Stream",
            "type": "boolean"
          },
          "task_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "**Deprecated.** Legacy task hint (``extract_entities`` / ``classify_text`` / ``extract_json`` / ``ner`` / ``schema``). The unified schema on ``text.format.schema`` disambiguates the task automatically. Submitting this field emits ``Deprecation: true`` and ``Sunset: <RFC 7231 date>`` headers on the response.",
            "title": "Task Type"
          },
          "temperature": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Temperature"
          },
          "text": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ResponsesTextRequest"
              },
              {
                "type": "null"
              }
            ]
          },
          "tool_choice": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "additionalProperties": true,
                "type": "object"
              }
            ],
            "default": "auto",
            "title": "Tool Choice"
          },
          "tools": {
            "items": {
              "additionalProperties": true,
              "type": "object"
            },
            "title": "Tools",
            "type": "array"
          },
          "top_p": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "title": "Top P"
          }
        },
        "required": [
          "model"
        ],
        "title": "ResponsesRequest",
        "type": "object"
      },
      "ResponsesTextFormatRequest": {
        "additionalProperties": true,
        "description": "Structured-output controls for Responses text formatting.",
        "properties": {
          "name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Name"
          },
          "schema": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Schema"
          },
          "strict": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Strict"
          },
          "type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Type"
          }
        },
        "title": "ResponsesTextFormatRequest",
        "type": "object"
      },
      "ResponsesTextRequest": {
        "additionalProperties": true,
        "description": "Responses text controls.",
        "properties": {
          "format": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ResponsesTextFormatRequest"
              },
              {
                "type": "null"
              }
            ]
          },
          "verbosity": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Verbosity"
          }
        },
        "title": "ResponsesTextRequest",
        "type": "object"
      },
      "SampleBody": {
        "additionalProperties": false,
        "description": "``POST .../sample``: continuations of one tokenized prompt from one of the job's sampler checkpoints.",
        "properties": {
          "checkpoint": {
            "description": "The sampler checkpoint's name, or its `tinker://<job_id>/sampler_weights/<name>` path (this job's own).",
            "title": "Checkpoint",
            "type": "string"
          },
          "num_samples": {
            "default": 1,
            "title": "Num Samples",
            "type": "integer"
          },
          "prompt_logprobs": {
            "default": false,
            "title": "Prompt Logprobs",
            "type": "boolean"
          },
          "prompt_tokens": {
            "items": {
              "type": "integer"
            },
            "maxItems": 1048576,
            "minItems": 1,
            "title": "Prompt Tokens",
            "type": "array"
          },
          "sampling_params": {
            "$ref": "#/components/schemas/SamplingParams"
          },
          "topk_prompt_logprobs": {
            "default": 0,
            "title": "Topk Prompt Logprobs",
            "type": "integer"
          },
          "topk_sample_logprobs": {
            "default": 0,
            "title": "Topk Sample Logprobs",
            "type": "integer"
          }
        },
        "required": [
          "checkpoint",
          "prompt_tokens"
        ],
        "title": "SampleBody",
        "type": "object"
      },
      "SamplingParams": {
        "additionalProperties": false,
        "description": "Decoding parameters.",
        "properties": {
          "max_tokens": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Max Tokens"
          },
          "seed": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "title": "Seed"
          },
          "stop": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Stop"
          },
          "temperature": {
            "default": 1.0,
            "title": "Temperature",
            "type": "number"
          },
          "top_k": {
            "default": -1,
            "title": "Top K",
            "type": "integer"
          },
          "top_p": {
            "default": 1.0,
            "title": "Top P",
            "type": "number"
          }
        },
        "title": "SamplingParams",
        "type": "object"
      },
      "SaveWeightsAccepted": {
        "description": "A queued save, and the checkpoint it writes.",
        "properties": {
          "checkpoint_id": {
            "description": "`weights/<name>` or `sampler_weights/<name>`.",
            "title": "Checkpoint Id",
            "type": "string"
          },
          "future_id": {
            "title": "Future Id",
            "type": "string"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "path": {
            "description": "The checkpoint's `tinker://` path.",
            "title": "Path",
            "type": "string"
          },
          "type": {
            "description": "The call: create, load, forward, forward_backward, optim_step, save, sample.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "future_id",
          "job_id",
          "type",
          "checkpoint_id",
          "path"
        ],
        "title": "SaveWeightsAccepted",
        "type": "object"
      },
      "SaveWeightsBody": {
        "additionalProperties": false,
        "description": "``POST .../save-weights``: save the training state (which a job can load or start from) under a name.",
        "properties": {
          "name": {
            "description": "1-128 characters from [A-Za-z0-9._-].",
            "title": "Name",
            "type": "string"
          },
          "overwrite": {
            "default": false,
            "description": "Replace a state of the same name.",
            "title": "Overwrite",
            "type": "boolean"
          },
          "soup": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/SoupIngredient"
                },
                "maxItems": 8,
                "minItems": 2,
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiDE: save instead the fp32 weighted mean of these training states and/or `base` (weights sum to 1), without optimizer state; load it with `load-weights` to evaluate or serve it.",
            "title": "Soup"
          },
          "ttl_seconds": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "1 hour to 10 years; none keeps it until deleted.",
            "title": "Ttl Seconds"
          },
          "user_metadata": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Metadata"
          }
        },
        "required": [
          "name"
        ],
        "title": "SaveWeightsBody",
        "type": "object"
      },
      "SaveWeightsForSamplerBody": {
        "additionalProperties": false,
        "description": "``POST .../save-weights-for-sampler``: save weights that can be sampled and downloaded, under a name.",
        "properties": {
          "name": {
            "description": "1-128 characters from [A-Za-z0-9._-].",
            "title": "Name",
            "type": "string"
          },
          "ttl_seconds": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "1 hour to 10 years; none keeps it until deleted.",
            "title": "Ttl Seconds"
          },
          "user_metadata": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "string"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Metadata"
          }
        },
        "required": [
          "name"
        ],
        "title": "SaveWeightsForSamplerBody",
        "type": "object"
      },
      "ScoreAnswer": {
        "additionalProperties": false,
        "description": "The chosen level, its expectation, and the level probabilities.",
        "properties": {
          "confidence": {
            "description": "Probability margin between the two most probable levels.",
            "maximum": 1.0,
            "minimum": 0.0,
            "title": "Confidence",
            "type": "number"
          },
          "expected_level": {
            "description": "Probability-weighted level index. Read this where a weighted score is expected.",
            "title": "Expected Level",
            "type": "number"
          },
          "legend": {
            "additionalProperties": {
              "type": "string"
            },
            "description": "Description of each level, keyed by level index.",
            "title": "Legend",
            "type": "object"
          },
          "probabilities": {
            "additionalProperties": {
              "maximum": 1.0,
              "minimum": 0.0,
              "type": "number"
            },
            "description": "Probability of each level, keyed by level index such as `\"0\"`.",
            "title": "Probabilities",
            "type": "object"
          },
          "score": {
            "description": "Index of the most probable level, from `0`.",
            "minimum": 0.0,
            "title": "Score",
            "type": "integer"
          },
          "type": {
            "const": "score",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "score",
          "expected_level",
          "confidence",
          "probabilities",
          "legend"
        ],
        "title": "Score answer",
        "type": "object"
      },
      "ScoreQuestion": {
        "additionalProperties": false,
        "description": "A question scored against an ordered set of levels.",
        "properties": {
          "criteria": {
            "anyOf": [
              {
                "items": {
                  "$ref": "#/components/schemas/JsonValue-Input"
                },
                "type": "array"
              },
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonValue-Input"
                },
                "type": "object"
              }
            ],
            "description": "1 to 255 levels, lowest first. An object needs numeric-string keys, which are sorted and discarded. Answers, `legend`, and `expected_level` use the 0-based level position, not your keys.",
            "title": "Criteria"
          },
          "instructions": {
            "description": "The question to answer about `state`. A JSON object is accepted and sent as its compact JSON text.",
            "minLength": 1,
            "title": "Instructions",
            "type": "string"
          },
          "type": {
            "const": "score",
            "description": "`score` to rate on an ordered scale.",
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "type",
          "instructions",
          "criteria"
        ],
        "title": "Score",
        "type": "object"
      },
      "SetTtlRequest": {
        "additionalProperties": false,
        "description": "``PUT .../checkpoints/{kind}/{name}/ttl``: ``ttl_seconds`` is required (null: keep until deleted).",
        "properties": {
          "ttl_seconds": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Seconds to keep the checkpoint from now (1 hour to 10 years), or null to keep it until deleted.",
            "title": "Ttl Seconds"
          }
        },
        "required": [
          "ttl_seconds"
        ],
        "title": "SetTtlRequest",
        "type": "object"
      },
      "SoupIngredient": {
        "additionalProperties": false,
        "description": "One state of a soup: a training-state checkpoint of the team's GLiDE jobs, or the base model.",
        "properties": {
          "path": {
            "description": "`base`, this job's state name, or a `tinker://<job_id>/weights/<name>` path.",
            "title": "Path",
            "type": "string"
          },
          "weight": {
            "exclusiveMinimum": 0.0,
            "title": "Weight",
            "type": "number"
          }
        },
        "required": [
          "path",
          "weight"
        ],
        "title": "SoupIngredient",
        "type": "object"
      },
      "StopJobRequest": {
        "description": "Optional prune evidence recorded when stopping a training job.",
        "properties": {
          "checkpoint": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Checkpoint path or step associated with this stop",
            "title": "Checkpoint"
          },
          "reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why this candidate is being stopped",
            "title": "Reason"
          },
          "scores": {
            "anyOf": [
              {
                "additionalProperties": {
                  "type": "number"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Metric values used to decide the prune",
            "title": "Scores"
          }
        },
        "title": "StopJobRequest",
        "type": "object"
      },
      "StopJobResponse": {
        "description": "Response after stopping a training job",
        "properties": {
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "message",
          "job_id",
          "status"
        ],
        "title": "StopJobResponse",
        "type": "object"
      },
      "StorageUsageResponse": {
        "description": "``billing/usage/checkpoints/current`` response.",
        "properties": {
          "data": {
            "items": {
              "$ref": "#/components/schemas/StorageUsageRow"
            },
            "title": "Data",
            "type": "array"
          },
          "effective_rate_usd_per_gigabyte_month": {
            "title": "Effective Rate Usd Per Gigabyte Month",
            "type": "number"
          }
        },
        "required": [
          "effective_rate_usd_per_gigabyte_month",
          "data"
        ],
        "title": "StorageUsageResponse",
        "type": "object"
      },
      "StorageUsageRow": {
        "description": "Live checkpoint storage of the caller's team.",
        "properties": {
          "checkpoint_count": {
            "title": "Checkpoint Count",
            "type": "integer"
          },
          "estimated_monthly_cost_usd": {
            "title": "Estimated Monthly Cost Usd",
            "type": "number"
          },
          "org_user_urn": {
            "title": "Org User Urn",
            "type": "string"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Project Id"
          },
          "size_bytes": {
            "title": "Size Bytes",
            "type": "integer"
          },
          "size_gigabytes": {
            "title": "Size Gigabytes",
            "type": "number"
          },
          "user_email": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "User Email"
          },
          "user_name": {
            "title": "User Name",
            "type": "string"
          }
        },
        "required": [
          "org_user_urn",
          "user_name",
          "checkpoint_count",
          "size_bytes",
          "size_gigabytes",
          "estimated_monthly_cost_usd"
        ],
        "title": "StorageUsageRow",
        "type": "object"
      },
      "SystemContentBlock": {
        "description": "A system content block in Anthropic format.",
        "properties": {
          "cache_control": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "title": "Cache Control"
          },
          "text": {
            "default": "",
            "title": "Text",
            "type": "string"
          },
          "type": {
            "default": "text",
            "title": "Type",
            "type": "string"
          }
        },
        "title": "SystemContentBlock",
        "type": "object"
      },
      "SystemOneRequest": {
        "additionalProperties": false,
        "description": "Body of ``POST /v1/systemone``.\n\n``provider``, ``user``, ``session_id`` and ``trace`` are the OpenRouter\nrouting and observability fields; they are accepted and never forwarded.\n``thinking`` is optional. Absent and false are one pass. True is rejected\nuntil a thinking pass is served.",
        "properties": {
          "model": {
            "description": "Decision model to call. Use `fastino/GLiDE`.",
            "minLength": 1,
            "title": "Model",
            "type": "string"
          },
          "provider": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonValue-Input"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Accepted for OpenRouter compatibility and not forwarded to the model.",
            "title": "Provider"
          },
          "questions": {
            "additionalProperties": {
              "discriminator": {
                "mapping": {
                  "choice": "#/components/schemas/ChoiceQuestion",
                  "noul": "#/components/schemas/NoulQuestion",
                  "score": "#/components/schemas/ScoreQuestion"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/NoulQuestion"
                },
                {
                  "$ref": "#/components/schemas/ChoiceQuestion"
                },
                {
                  "$ref": "#/components/schemas/ScoreQuestion"
                }
              ]
            },
            "description": "One or more questions keyed by names you choose. The same keys appear under `answers`.",
            "minProperties": 1,
            "title": "Questions",
            "type": "object"
          },
          "session_id": {
            "anyOf": [
              {
                "maxLength": 256,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Accepted for OpenRouter compatibility and not forwarded to the model.",
            "title": "Session Id"
          },
          "state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonValue-Input"
                },
                "type": "object"
              },
              {
                "items": {
                  "$ref": "#/components/schemas/JsonValue-Input"
                },
                "type": "array"
              }
            ],
            "description": "The situation every question is evaluated against: a string, a JSON object of labeled fields, or a JSON array. An array may mix strings with text parts and up to 4 image_url parts (a public https URL without redirects, or a base64 data URL). Each image must be JPEG, PNG, GIF or WebP, at most 3,932,160 bytes (5 MiB of base64) and at most 25,000,000 pixels. Images are billed as input tokens, once per question. Send an empty value when the question carries all the context.",
            "title": "State"
          },
          "store": {
            "default": true,
            "description": "Whether Fastino keeps this request's input and output. `true` (the default) records them in your inference history. `false` keeps neither: no history entry, and the payload stays out of logs, error reports and traces, so it is never used for training or continuous adaptation, whatever your training opt-out says. Usage metadata (model, token counts, latency, status, cost) is still recorded for billing. The `X-Fastino-Data-Retention` response header reports the outcome.",
            "title": "Store",
            "type": "boolean"
          },
          "thinking": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Omit or send `false`. `true` is rejected until thinking is served.",
            "title": "Thinking"
          },
          "trace": {
            "anyOf": [
              {
                "additionalProperties": {
                  "$ref": "#/components/schemas/JsonValue-Input"
                },
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Accepted for OpenRouter compatibility and not forwarded to the model.",
            "title": "Trace"
          },
          "user": {
            "anyOf": [
              {
                "maxLength": 256,
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Accepted for OpenRouter compatibility and not forwarded to the model.",
            "title": "User"
          }
        },
        "required": [
          "model",
          "state",
          "questions"
        ],
        "title": "SystemOneRequest",
        "type": "object"
      },
      "SystemOneResponse": {
        "additionalProperties": false,
        "description": "Decision answers and token usage for one request.",
        "properties": {
          "answers": {
            "additionalProperties": {
              "discriminator": {
                "mapping": {
                  "choice": "#/components/schemas/ChoiceAnswer",
                  "noul": "#/components/schemas/NoulAnswer",
                  "score": "#/components/schemas/ScoreAnswer"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/NoulAnswer"
                },
                {
                  "$ref": "#/components/schemas/ChoiceAnswer"
                },
                {
                  "$ref": "#/components/schemas/ScoreAnswer"
                }
              ]
            },
            "description": "One answer per question, keyed by the question names you sent.",
            "title": "Answers",
            "type": "object"
          },
          "model": {
            "description": "Engine name without the provider prefix, e.g. `glide`.",
            "title": "Model",
            "type": "string"
          },
          "token_usage": {
            "description": "Total tokens billed for the decision (input plus output).",
            "minimum": 0,
            "title": "Token Usage",
            "type": "integer"
          },
          "usage": {
            "$ref": "#/components/schemas/SystemOneUsage",
            "description": "Token counts used for billing."
          }
        },
        "required": [
          "model",
          "answers",
          "usage",
          "token_usage"
        ],
        "title": "SystemOneResponse",
        "type": "object"
      },
      "SystemOneUsage": {
        "additionalProperties": false,
        "description": "Token counts the engine reports for one decision.",
        "properties": {
          "input_tokens": {
            "description": "Input tokens across every internal pass for every question, including visual tokens from images. Can exceed 65,536 even when each rendered question prompt fits.",
            "minimum": 0.0,
            "title": "Input Tokens",
            "type": "integer"
          },
          "output_tokens": {
            "description": "Output tokens the engine produced.",
            "minimum": 0.0,
            "title": "Output Tokens",
            "type": "integer"
          }
        },
        "required": [
          "input_tokens",
          "output_tokens"
        ],
        "title": "SystemOneUsage",
        "type": "object"
      },
      "TensorData": {
        "additionalProperties": false,
        "description": "Row-major tensor, dense unless both CSR index arrays are set (``data`` then holds the nnz values).\n\n``data`` keeps int64 values as ints (token ids above 2**53 survive) and float32 values as floats.",
        "properties": {
          "data": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "items": {
                  "type": "number"
                },
                "type": "array"
              }
            ],
            "title": "Data"
          },
          "dtype": {
            "enum": [
              "int64",
              "float32"
            ],
            "title": "Dtype",
            "type": "string"
          },
          "shape": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Shape"
          },
          "sparse_col_indices": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sparse Col Indices"
          },
          "sparse_crow_indices": {
            "anyOf": [
              {
                "items": {
                  "type": "integer"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "title": "Sparse Crow Indices"
          }
        },
        "required": [
          "data",
          "dtype"
        ],
        "title": "TensorData",
        "type": "object"
      },
      "TerminateJobRequest": {
        "description": "Options for terminating a training job.",
        "properties": {
          "delete_checkpoints": {
            "default": false,
            "description": "Permanently delete all checkpoints and artifacts for this job. Irreversible. Defaults to false so terminate never destroys artifacts the caller has already paid to produce.",
            "title": "Delete Checkpoints",
            "type": "boolean"
          }
        },
        "title": "TerminateJobRequest",
        "type": "object"
      },
      "TerminateJobResponse": {
        "description": "Response after terminating a training job",
        "properties": {
          "deleted_checkpoints": {
            "title": "Deleted Checkpoints",
            "type": "integer"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "status": {
            "default": "terminated",
            "description": "`terminated` once confirmed, or `stopping` (HTTP 202) while the provider confirms; with `delete_checkpoints: true`, checkpoints are deleted only after confirmation.",
            "title": "Status",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "message",
          "job_id",
          "deleted_checkpoints"
        ],
        "title": "TerminateJobResponse",
        "type": "object"
      },
      "TrainingFuture": {
        "description": "A queued call of an interactive job, with its result once ``completed``.",
        "properties": {
          "error": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/FutureError"
              },
              {
                "type": "null"
              }
            ]
          },
          "future_id": {
            "title": "Future Id",
            "type": "string"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "queue_state": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "While unfinished: `active`, or `paused_capacity` while waiting for a team training-run slot or GPU capacity.",
            "title": "Queue State"
          },
          "queue_state_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Queue State Reason"
          },
          "result": {
            "$ref": "#/components/schemas/JsonValue-Output",
            "description": "forward / forward_backward: `{loss_fn_outputs, metrics}` (GLiDE: `probs` over each row's options); sample: `{sequences, prompt_logprobs, ...}`; save: the checkpoint path; others: the call's acknowledgement."
          },
          "status": {
            "enum": [
              "pending",
              "running",
              "completed",
              "failed",
              "cancelled"
            ],
            "title": "Status",
            "type": "string"
          },
          "type": {
            "title": "Type",
            "type": "string"
          }
        },
        "required": [
          "future_id",
          "job_id",
          "type",
          "status"
        ],
        "title": "TrainingFuture",
        "type": "object"
      },
      "TrainingJobBillingResponse": {
        "description": "Billing outcome for a training job.",
        "properties": {
          "billed": {
            "description": "Whether a billing record exists for this job; see charged_usd for the amount.",
            "title": "Billed",
            "type": "boolean"
          },
          "billed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the billing request row was created.",
            "title": "Billed At"
          },
          "charged_usd": {
            "anyOf": [
              {
                "pattern": "^-?\\d+\\.\\d{2}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Selling price actually charged for this job's GPU time.",
            "title": "Charged Usd"
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "compute_started_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When training compute began. Distinct from started_at. Failed or cancelled jobs are billed only when this is set, so null explains why billed is false.",
            "title": "Compute Started At"
          },
          "gpu_minutes": {
            "anyOf": [
              {
                "pattern": "^(?!^[-+.]*$)[+-]?0*\\d*\\.?\\d*$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Billed GPU minutes, derived from the billed request's duration_ms.",
            "title": "Gpu Minutes"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "request_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Billing request identifier, when billed.",
            "title": "Request Id"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "When the job was dispatched to Modal (spawn / queue time).",
            "title": "Started At"
          },
          "status": {
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "job_id",
          "status",
          "billed"
        ],
        "title": "TrainingJobBillingResponse",
        "type": "object"
      },
      "TrainingJobCreate": {
        "additionalProperties": false,
        "description": "Request to create a training job.",
        "properties": {
          "auto_data_sizing": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiNER only. Opt-in: when true, downsample each training dataset to min(max_samples_per_dataset, max(min_samples_per_dataset, samples_per_label * num_labels)). When omitted or false, the full provided dataset is used without downsampling.",
            "title": "Auto Data Sizing"
          },
          "base_model": {
            "description": "Trainable model ID from GET /v1/base-models?supports_training=true (e.g. 'fastino/gliner2-base-v1').",
            "minLength": 1,
            "title": "Base Model",
            "type": "string"
          },
          "batch_size": {
            "default": 4,
            "description": "Training batch size (1 to 256). Prefer omitting this field so the training service applies the catalog default for ``base_model``. GLiNER encoder batches that do not fit the training GPU are reduced to the largest that fits. For decoder models, explicit values equal to this Field default (4) that exceed the model's safe maximum are treated as legacy unset clients and clamped to the catalog default; any other oversize value is rejected.",
            "maximum": 256.0,
            "minimum": 1.0,
            "title": "Batch Size",
            "type": "integer"
          },
          "datasets": {
            "description": "Datasets to train on (supports multi-dataset training)",
            "items": {
              "$ref": "#/components/schemas/DatasetReference"
            },
            "minItems": 1,
            "title": "Datasets",
            "type": "array"
          },
          "early_stopping_min_delta": {
            "default": 0.0001,
            "description": "Minimum validation loss improvement to count as progress. Prevents early stopping from triggering on noise.",
            "minimum": 0.0,
            "title": "Early Stopping Min Delta",
            "type": "number"
          },
          "early_stopping_patience": {
            "default": 3,
            "description": "Validation epochs without improvement before stopping. Requires validation_data_percentage > 0. Set to 0 to disable.",
            "maximum": 10000.0,
            "minimum": 0.0,
            "title": "Early Stopping Patience",
            "type": "integer"
          },
          "encoder_learning_rate": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 1e-08,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiNER only: learning rate applied to encoder parameters. When omitted, falls back to `learning_rate`.",
            "title": "Encoder Learning Rate"
          },
          "eval_steps": {
            "anyOf": [
              {
                "maximum": 2147483647.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiNER2 (encoder) only: run periodic mid-training validation every N optimizer steps, in requested-batch units like save_steps (scaled by the same ratio when GPU admission reduces the batch). When omitted, validation runs only at each epoch end — the standard cadence. Periodic evals are for cost/visibility (loss curve, W&B): they do NOT select the deployed checkpoint. Checkpoint selection uses the full-split epoch-end and final validation. Checkpoint saving still follows save_steps independently.",
            "title": "Eval Steps"
          },
          "gradient_accumulation_steps": {
            "anyOf": [
              {
                "maximum": 2147483647.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Accumulate gradients over N mini-batches before each optimizer step. Effective batch size = batch_size * N. Honoured by GLiNER and dense decoder LoRA training; when omitted, dense LoRA applies the per-model catalog default (8 for the H200 Nemotron 3.5 profiles, whose per-device batch is pinned to 1).",
            "title": "Gradient Accumulation Steps"
          },
          "label_sampling": {
            "anyOf": [
              {
                "enum": [
                  "stochastic",
                  "off"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiNER2 only: how training samples each row's label prompt. 'stochastic' (used when omitted) keeps the GLiNER2 library's augmentation: it randomly drops classification labels, sometimes the true one, renames labels to placeholders such as 'label 1' or 'entity 1', and shuffles their order. 'off' trains every entity and classification task on its full declared label set, in order, under its real names: suited to a fixed label set. It also stops renaming JSON-structure fields to placeholders (the library shares that setting); structure and field dropping, relations and task order keep their sampling. Validation is never sampled.",
            "title": "Label Sampling"
          },
          "learning_rate": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 1e-08,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Peak learning rate for AdamW. When omitted, the trainer's default applies — the per-model catalog rate (2e-4) for decoder LoRA on Modal, 2e-5 elsewhere. Pinning the old 2e-5 default on a decoder LoRA run under-trains the adapter by an order of magnitude.",
            "title": "Learning Rate"
          },
          "lora_alpha": {
            "anyOf": [
              {
                "maximum": 2147483647.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "LoRA alpha. When omitted, the trainer's default applies: the per-model catalog alpha for decoder LoRA on Modal, or 32 elsewhere.",
            "title": "Lora Alpha"
          },
          "lora_dropout": {
            "anyOf": [
              {
                "exclusiveMaximum": 1.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "LoRA dropout. When omitted, the trainer's default applies: the per-model catalog dropout for decoder LoRA on Modal, or 0.1 elsewhere.",
            "title": "Lora Dropout"
          },
          "lora_r": {
            "anyOf": [
              {
                "maximum": 256.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "LoRA rank. The ceiling depends on the base model: a LoRA job above the rank its serving loads (64 for GLiNER; the catalog's per-model ceiling for decoders) is refused with code unservable_lora_rank at create and quote time, since the adapter would train but never load. When omitted, the trainer's default applies: the per-model catalog rank for decoder LoRA on Modal (including 32 for the qualified Nemotron 3.5 Lightning profile), or 16 elsewhere.",
            "title": "Lora R"
          },
          "lr_scheduler_type": {
            "default": "cosine",
            "description": "LR decay schedule after warmup: 'constant', 'linear', or 'cosine'. Decoder training defaults to cosine; GLiNER defaults to linear unless this is set explicitly; encoder jobs accept only the three named values.",
            "title": "Lr Scheduler Type",
            "type": "string"
          },
          "max_eval_samples": {
            "anyOf": [
              {
                "maximum": 2147483647.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiNER2 (encoder) only: per-dataset cap on the periodic mid-training validation set (deterministic first-N subsample). When omitted, no cap. Periodic evals are for cost/visibility only and never select the deployed checkpoint; selection uses the full-split epoch-end and final validation, which ignore this cap.",
            "title": "Max Eval Samples"
          },
          "max_gold_per_query": {
            "anyOf": [
              {
                "maximum": 1024.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiNER2 only: maximum gold spans retained for each query. Omit to use GLiNER2's default of 32.",
            "title": "Max Gold Per Query"
          },
          "max_length": {
            "anyOf": [
              {
                "maximum": 2147483647.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiNER only: maximum tokens kept from the start of each training row. Omit to use the model's context window, shortened when that window does not fit the L4 batch.",
            "title": "Max Length"
          },
          "max_samples_per_dataset": {
            "anyOf": [
              {
                "maximum": 2147483647.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiNER only: upper bound for auto-sized dataset cap.",
            "title": "Max Samples Per Dataset"
          },
          "min_samples_per_dataset": {
            "anyOf": [
              {
                "maximum": 2147483647.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiNER only: lower bound for auto-sized dataset cap.",
            "title": "Min Samples Per Dataset"
          },
          "min_training_steps": {
            "anyOf": [
              {
                "maximum": 2147483647.0,
                "minimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiNER only: minimum number of optimizer steps; raises epoch count if the provided `nr_epochs` would yield fewer steps.",
            "title": "Min Training Steps"
          },
          "model_name": {
            "description": "User-friendly name for the trained model. Must not contain '<', '>', or control characters.",
            "maxLength": 100,
            "minLength": 1,
            "title": "Model Name",
            "type": "string"
          },
          "nr_epochs": {
            "default": 100,
            "description": "Maximum training epochs (1 to 10000). With early stopping enabled, training typically terminates well before this ceiling.",
            "maximum": 10000.0,
            "minimum": 1.0,
            "title": "Nr Epochs",
            "type": "integer"
          },
          "on_capacity_exceeded": {
            "anyOf": [
              {
                "enum": [
                  "raise",
                  "truncate_with_warning",
                  "skip_sample"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiNER2 only: behavior when a query has more gold spans than max_gold_per_query. 'raise' fails the job without dropping gold; 'truncate_with_warning' keeps the first spans and drops the rest; 'skip_sample' keeps the row in the batch but removes all of its extraction supervision. Omit to use 'raise'.",
            "title": "On Capacity Exceeded"
          },
          "profile_training": {
            "default": false,
            "description": "Enable structured training profiling for this run and persist a training_profile.json artifact.",
            "title": "Profile Training",
            "type": "boolean"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Project ID to associate with this training job. When omitted, the job is anchored to the caller's auto-managed \"Default\" project so it is always deployable and fleet-eligible.",
            "title": "Project Id"
          },
          "provider_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Pin training to a specific provider (e.g. 'modal'). Bypasses automatic provider selection.",
            "title": "Provider Name"
          },
          "samples_per_label": {
            "anyOf": [
              {
                "maximum": 2147483647.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiNER only: scaling factor used when computing the auto-sized per-dataset cap.",
            "title": "Samples Per Label"
          },
          "save_best": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiNER2 only: publish the weights from the epoch with the lowest validation loss instead of the last epoch. Applies when omitted; needs validation_data_percentage > 0. Set false to publish the final epoch.",
            "title": "Save Best"
          },
          "save_steps": {
            "default": 100,
            "description": "Requested-batch checkpoint interval: optimizer steps at the requested batch size (sample-normalized). When GLiNER capacity requires a smaller batch, the effective interval is scaled by ceil(save_steps * requested_batch / applied_batch) so the same number of samples pass between saves. Dense-LoRA uses this value as the optimizer-step interval.",
            "maximum": 2147483647.0,
            "minimum": 1.0,
            "title": "Save Steps",
            "type": "integer"
          },
          "seed": {
            "anyOf": [
              {
                "maximum": 2147483647.0,
                "minimum": 0.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional reproducibility seed for supported decoder and GLiNER2 encoder training. Requests must pin provider_name to 'modal'. When omitted, encoder and decoder jobs share the same trainer default (3407). A pinned seed controls training-data order and trainer randomness but does not guarantee bit-identical GPU runs. It does not change the train/validation split.",
            "title": "Seed"
          },
          "task_learning_rate": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 1e-08,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "GLiNER only: learning rate applied to task-head parameters. When omitted, falls back to `learning_rate`.",
            "title": "Task Learning Rate"
          },
          "training_algorithm": {
            "const": "sft",
            "default": "sft",
            "description": "Training algorithm. Only 'sft' is accepted: decoder SFT, DPO and GRPO train step by step with the training job routes under /v1/training/jobs (see https://docs.fastino.ai/training/quickstart).",
            "title": "Training Algorithm",
            "type": "string"
          },
          "training_type": {
            "default": "lora",
            "description": "Training type: 'full' or 'lora'",
            "enum": [
              "full",
              "lora"
            ],
            "title": "Training Type",
            "type": "string"
          },
          "validation_data_percentage": {
            "default": 0.2,
            "description": "Fraction of data held out for validation, 0.0 to 0.9 in steps of 0.01 (e.g. 0.15). Higher values leave too little data to train on.",
            "maximum": 0.9,
            "minimum": 0.0,
            "multipleOf": 0.01,
            "title": "Validation Data Percentage",
            "type": "number"
          },
          "wandb_api_key": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Optional W&B API key for logging",
            "title": "Wandb Api Key"
          },
          "warmup_ratio": {
            "anyOf": [
              {
                "maximum": 1.0,
                "minimum": 0.0,
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Fraction of total training steps for linear LR warmup. Ignored when warmup_steps is set (decoders; encoder jobs reject warmup_steps). When omitted, the trainer's default applies — the per-model catalog warmup (0.03) for decoder LoRA on Modal, 0.1 for GLiNER, none elsewhere.",
            "title": "Warmup Ratio"
          },
          "warmup_steps": {
            "anyOf": [
              {
                "maximum": 2147483647.0,
                "minimum": 1.0,
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Absolute number of linear LR warmup steps. When set, takes priority over warmup_ratio. Decoder training only: GLiNER encoder jobs reject it (use warmup_ratio).",
            "title": "Warmup Steps"
          },
          "weight_decay": {
            "default": 0.01,
            "description": "AdamW weight decay (L2 penalty). 0 disables weight decay. Applied to decoder and dense-LoRA training. GLiNER2 training uses its own default.",
            "minimum": 0.0,
            "title": "Weight Decay",
            "type": "number"
          }
        },
        "required": [
          "model_name",
          "datasets",
          "base_model"
        ],
        "title": "TrainingJobCreate",
        "type": "object"
      },
      "TrainingJobResponse": {
        "description": "Training job response model",
        "properties": {
          "artifact_ready": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whether an artifact location is recorded, so there is something to serve.",
            "title": "Artifact Ready"
          },
          "base_model": {
            "description": "The catalog base model the adapter was trained on (for an `interactive_checkpoint` model, the base of the interactive job it came from).",
            "title": "Base Model",
            "type": "string"
          },
          "batch_size": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Training batch size the job runs with, which can be lower than the requested value when it would not fit on the GPU. Effective batch per optimizer step is this times `resolved_recipe.gradient_accumulation_steps` when recorded. Null for an `interactive_checkpoint` model.",
            "title": "Batch Size"
          },
          "calling_usage": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/ModelCallingUsage"
              },
              {
                "type": "null"
              }
            ],
            "description": "Recorded model calling contract and a neutral example; uncaptured or unknown history is explicit."
          },
          "completed_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Completed At"
          },
          "created_at": {
            "title": "Created At",
            "type": "string"
          },
          "current_epoch": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Epoch currently in progress (1-indexed). Updated live during training.",
            "title": "Current Epoch"
          },
          "datasets": {
            "items": {
              "$ref": "#/components/schemas/DatasetReference"
            },
            "title": "Datasets",
            "type": "array"
          },
          "deployability_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why the job is not deployable (e.g. 'job_incomplete', 'missing_artifact', 'provider_incompatible', 'adapter_inference_unavailable', 'artifact_publishing'). Null when deployable.",
            "title": "Deployability Reason"
          },
          "deployment_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Deprecated. Always returns None -- deployment_status no longer exists.\n\nKept for backward compat with clients that read this field.",
            "readOnly": true,
            "title": "Deployment Status"
          },
          "error_message": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Error Message"
          },
          "example": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Sample text to pre-load into inference input",
            "title": "Example"
          },
          "experiment_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Experiment associated with this training job, when available. Null means no associated experiment was recorded.",
            "title": "Experiment Id"
          },
          "hub_model_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "HuggingFace repository ID (for example, 'username/model-name') linked after a successful Hub push. Null when the model has not been pushed. See hub_model_private for repository visibility.",
            "title": "Hub Model Id"
          },
          "hub_model_private": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whether the pushed Hub repository is private, as recorded at push time. Null means the job was not pushed or its repository visibility was not recorded.",
            "title": "Hub Model Private"
          },
          "id": {
            "title": "Id",
            "type": "string"
          },
          "instance_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Instance Type"
          },
          "is_deployable": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whether this job passes server-side deployability validation for its own project. Authoritative -- the same check the deployment endpoints enforce.",
            "title": "Is Deployable"
          },
          "is_terminal_status": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whether this status is terminal for polling loops",
            "title": "Is Terminal Status"
          },
          "job_reference": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Job Reference"
          },
          "labels": {
            "anyOf": [
              {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              {
                "type": "null"
              }
            ],
            "description": "Merged labels from training datasets (entity types for NER, class labels for classification)",
            "title": "Labels"
          },
          "learning_rate": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Learning rate. Null for an `interactive_checkpoint` model.",
            "title": "Learning Rate"
          },
          "metrics": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Training and evaluation metrics dictionary. Contains final_training_loss, final_validation_loss, best_validation_loss from training logs, and optional evaluation metrics (f1_score, precision_score, recall_score, accuracy) if an evaluation has been run.",
            "title": "Metrics"
          },
          "model_auto_selected": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Auto Selected"
          },
          "model_kind": {
            "anyOf": [
              {
                "enum": [
                  "lora",
                  "full"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Normalized fine-tune kind: 'lora' for adapters (lora/qlora) or 'full' for merged weights. Null when the persisted training type is unrecognised -- clients must not claim a kind in that case.",
            "title": "Model Kind"
          },
          "model_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "default": "Unnamed Model",
            "title": "Model Name"
          },
          "model_selection_reason": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Model Selection Reason"
          },
          "normalized_status": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Canonical status alias for compatibility handling (requested, running, complete, deployed, failed, cancelled)",
            "title": "Normalized Status"
          },
          "notices": {
            "description": "Advisories to show alongside this job, such as the dedicated-endpoint serving terms for full fine-tunes.",
            "items": {
              "$ref": "#/components/schemas/TrainingNotice"
            },
            "title": "Notices",
            "type": "array"
          },
          "nr_epochs": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Training epochs. Null for an `interactive_checkpoint` model.",
            "title": "Nr Epochs"
          },
          "progress_percent": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Overall training completion percentage (0-100). Updated live during training.",
            "title": "Progress Percent"
          },
          "project_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Project ID this training job is associated with",
            "title": "Project Id"
          },
          "provider_deployments": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Provider-specific deployment metadata written by the training monitor, keyed by provider: {\"modal\": {...}}.",
            "title": "Provider Deployments"
          },
          "provider_name": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Training provider that handled this job (e.g. 'modal'). Jobs predating a provider removal carry an 'archived_<provider>' label.",
            "title": "Provider Name"
          },
          "provider_ready": {
            "anyOf": [
              {
                "type": "boolean"
              },
              {
                "type": "null"
              }
            ],
            "description": "Whether a provider is already serving this artifact. False is not a deployment blocker: promotion provisions or re-warms a provider.",
            "title": "Provider Ready"
          },
          "resolved_recipe": {
            "anyOf": [
              {
                "additionalProperties": true,
                "type": "object"
              },
              {
                "type": "null"
              }
            ],
            "description": "Immutable snapshot of the training settings used when this job was dispatched, including optimization, precision, sequence length, and seed settings. Null when no snapshot is available. Read this instead of re-deriving historical settings from the current model catalog.",
            "title": "Resolved Recipe"
          },
          "root_job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "ID of the original/root training job this version derives from",
            "title": "Root Job Id"
          },
          "seed": {
            "anyOf": [
              {
                "type": "integer"
              },
              {
                "type": "null"
              }
            ],
            "description": "Effective reproducibility seed for Modal decoder or GLiNER2 (encoder) training. Null for Fireworks, unknown, and other providers/architectures that cannot honor this contract, and also null for a legacy Modal decoder/encoder job created before seed provenance was recorded, because its seed is unknown, and for an `interactive_checkpoint` model, which this job did not train. A non-null value is always a genuinely recorded seed. A pinned seed controls training-data order and trainer randomness but does not guarantee bit-identical GPU runs. It does not change the train/validation split.",
            "title": "Seed"
          },
          "source": {
            "default": "config_training",
            "description": "How the model came to exist: `config_training` for a job Fastino trained from data and a config, `interactive_checkpoint` for a sampler checkpoint of an interactive job served as a model (`POST /v1/training/jobs/{job_id}/checkpoints/sampler_weights/{name}/deploy`). An `interactive_checkpoint` model ran no training of its own, so it lists no datasets and its training settings are null.",
            "enum": [
              "config_training",
              "interactive_checkpoint"
            ],
            "title": "Source",
            "type": "string"
          },
          "started_at": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Started At"
          },
          "status": {
            "title": "Status",
            "type": "string"
          },
          "task_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Task type derived from training datasets: 'ner', 'classification', 'custom', or 'decoder'",
            "title": "Task Type"
          },
          "trained_model_path": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "title": "Trained Model Path"
          },
          "training_type": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Raw training method as persisted: 'lora', 'qlora', or 'full'.",
            "title": "Training Type"
          },
          "type": {
            "const": "config",
            "default": "config",
            "description": "A config training job (you give data and a config, Fastino runs the loop). ``/v1/trained-models`` also lists interactive jobs (``type: interactive``).",
            "title": "Type",
            "type": "string"
          },
          "updated_at": {
            "title": "Updated At",
            "type": "string"
          },
          "user_id": {
            "title": "User Id",
            "type": "string"
          },
          "validation_data_percentage": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "null"
              }
            ],
            "description": "Share of the data held out for validation (0-1). Null for an `interactive_checkpoint` model.",
            "title": "Validation Data Percentage"
          },
          "version_number": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Version number for this training job (e.g., '1', '2', '3')",
            "title": "Version Number"
          }
        },
        "required": [
          "id",
          "user_id",
          "datasets",
          "base_model",
          "validation_data_percentage",
          "nr_epochs",
          "learning_rate",
          "batch_size",
          "status",
          "created_at",
          "updated_at",
          "deployment_status"
        ],
        "title": "TrainingJobResponse",
        "type": "object"
      },
      "TrainingJobUpdate": {
        "additionalProperties": false,
        "description": "Thin PATCH body for ``PATCH /v1/training/jobs/{job_id}``.\n\nExposes only ``project_id``. Send ``null`` to unassign the training job\nfrom its current project. Unknown fields are rejected with HTTP 422.\n\nMoving a job changes only its project association. Related resources\nremain in their current projects and must be moved separately.",
        "properties": {
          "project_id": {
            "anyOf": [
              {
                "pattern": "(?i)^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "Project ID (UUID) to assign the training job to, or null to unassign.",
            "title": "Project Id"
          }
        },
        "title": "TrainingJobUpdate",
        "type": "object"
      },
      "TrainingJobsPage": {
        "description": "``GET /v1/training/jobs``: config and interactive jobs (Tinker training runs), newest first, told apart by ``type``.\n\nInteractive jobs are listed only for a team on the training runs API.",
        "properties": {
          "count": {
            "description": "Jobs on this page.",
            "title": "Count",
            "type": "integer"
          },
          "has_more": {
            "description": "True when more jobs follow this page.",
            "title": "Has More",
            "type": "boolean"
          },
          "success": {
            "default": true,
            "title": "Success",
            "type": "boolean"
          },
          "total": {
            "description": "Matching jobs in all.",
            "title": "Total",
            "type": "integer"
          },
          "training_jobs": {
            "items": {
              "discriminator": {
                "mapping": {
                  "config": "#/components/schemas/TrainingJobResponse",
                  "interactive": "#/components/schemas/InteractiveJobView"
                },
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "$ref": "#/components/schemas/TrainingJobResponse"
                },
                {
                  "$ref": "#/components/schemas/InteractiveJobView"
                }
              ]
            },
            "title": "Training Jobs",
            "type": "array"
          }
        },
        "required": [
          "training_jobs",
          "count",
          "total",
          "has_more"
        ],
        "title": "TrainingJobsPage",
        "type": "object"
      },
      "TrainingLogsResponse": {
        "description": "Response containing training output logs for a job",
        "properties": {
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "logs": {
            "items": {
              "$ref": "#/components/schemas/TrainingOutputLogEntry"
            },
            "title": "Logs",
            "type": "array"
          },
          "total_logs": {
            "title": "Total Logs",
            "type": "integer"
          }
        },
        "required": [
          "job_id",
          "logs",
          "total_logs"
        ],
        "title": "TrainingLogsResponse",
        "type": "object"
      },
      "TrainingNotice": {
        "description": "Advisory attached to a training job or quote; never blocks the launch.",
        "properties": {
          "code": {
            "description": "Stable machine-readable notice code.",
            "title": "Code",
            "type": "string"
          },
          "message": {
            "description": "Customer-facing notice text.",
            "title": "Message",
            "type": "string"
          }
        },
        "required": [
          "code",
          "message"
        ],
        "title": "TrainingNotice",
        "type": "object"
      },
      "TrainingOperation": {
        "description": "``GET /v1/training/operations/{idempotency_key}``: what the call sent with this key did, if it arrived.",
        "properties": {
          "future_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The future it queued; null until recorded, for a stop and for `create-job`.",
            "title": "Future Id"
          },
          "future_status": {
            "anyOf": [
              {
                "enum": [
                  "pending",
                  "running",
                  "completed",
                  "failed",
                  "cancelled",
                  "lost"
                ],
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The future's status; null without a future, and once a finished future is deleted (its retention).",
            "title": "Future Status"
          },
          "idempotency_key": {
            "title": "Idempotency Key",
            "type": "string"
          },
          "job_id": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The job the call created or acted on; null until its identity is recorded.",
            "title": "Job Id"
          },
          "operation": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ],
            "description": "The route the key was used on: `create-model`, `forward-backward`, `stop`, ..., or `create-job` for `POST /v1/training/jobs`.",
            "title": "Operation"
          },
          "status": {
            "description": "`accepted`: a call with this key was accepted and its job was recorded (work may still be running). `not_found`: no receipt is visible in the caller's scope, including while a native call is still admitting; this does not prove no work was accepted. Reconcile using the original key and request, not a fresh key.",
            "enum": [
              "accepted",
              "not_found"
            ],
            "title": "Status",
            "type": "string"
          }
        },
        "required": [
          "idempotency_key",
          "status"
        ],
        "title": "TrainingOperation",
        "type": "object"
      },
      "TrainingOutputLogEntry": {
        "description": "Single training output log entry (stdout/stderr)",
        "properties": {
          "id": {
            "title": "Id",
            "type": "string"
          },
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "level": {
            "title": "Level",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "source": {
            "title": "Source",
            "type": "string"
          },
          "timestamp": {
            "format": "date-time",
            "title": "Timestamp",
            "type": "string"
          }
        },
        "required": [
          "id",
          "job_id",
          "timestamp",
          "level",
          "message",
          "source"
        ],
        "title": "TrainingOutputLogEntry",
        "type": "object"
      },
      "TrainingRunCheckpointListResponse": {
        "description": "``GET /v1/training/jobs/{job_id}/checkpoints``: a run's live checkpoints, newest first.",
        "properties": {
          "checkpoints": {
            "items": {
              "$ref": "#/components/schemas/CheckpointView"
            },
            "title": "Checkpoints",
            "type": "array"
          },
          "count": {
            "title": "Count",
            "type": "integer"
          },
          "run_id": {
            "title": "Run Id",
            "type": "string"
          },
          "success": {
            "default": true,
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "run_id",
          "checkpoints",
          "count"
        ],
        "title": "TrainingRunCheckpointListResponse",
        "type": "object"
      },
      "UpdateModelNameRequest": {
        "description": "Request to update a training job's model name",
        "properties": {
          "model_name": {
            "description": "New model name (alphanumeric, hyphens, underscores)",
            "maxLength": 64,
            "minLength": 1,
            "title": "Model Name",
            "type": "string"
          }
        },
        "required": [
          "model_name"
        ],
        "title": "UpdateModelNameRequest",
        "type": "object"
      },
      "UpdateModelNameResponse": {
        "description": "Response model for updating model name",
        "properties": {
          "job_id": {
            "title": "Job Id",
            "type": "string"
          },
          "message": {
            "title": "Message",
            "type": "string"
          },
          "model_name": {
            "title": "Model Name",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "message",
          "job_id",
          "model_name"
        ],
        "title": "UpdateModelNameResponse",
        "type": "object"
      },
      "UpdateResourceProjectResponse": {
        "description": "Response for project assignment update.",
        "properties": {
          "message": {
            "title": "Message",
            "type": "string"
          },
          "success": {
            "title": "Success",
            "type": "boolean"
          }
        },
        "required": [
          "success",
          "message"
        ],
        "title": "UpdateResourceProjectResponse",
        "type": "object"
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "description": "Fastino API key supplied in the X-API-Key header.",
        "in": "header",
        "name": "X-API-Key",
        "type": "apiKey"
      },
      "BearerAuth": {
        "bearerFormat": "JWT",
        "description": "Supabase access token or Fastino API key supplied as a Bearer token.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "info": {
    "description": "Public Fastino training and inference operations documented at https://docs.fastino.ai.",
    "title": "Fastino Training and Inference API",
    "version": "2.0.0"
  },
  "openapi": "3.1.0",
  "paths": {
    "/v1/base-models": {
      "get": {
        "description": "List base models available to the caller.\n\nEach model reports its inference and training capabilities, supported\ntraining types, context limits, and public pricing. Capability filters\nselect models currently available for the requested operation.\n\nAuthentication is optional. Anonymous callers receive the public catalog;\nauthenticated callers may also receive models available to their account.\nModel visibility can vary by account eligibility and jurisdiction.\n\nExamples:\n    GET /v1/base-models                          — full catalog\n    GET /v1/base-models?supports_inference=true   — serverless-capable models\n    GET /v1/base-models?supports_training=true    — trainable models\n    GET /v1/base-models?task_type=encoder          — encoder/NER models only\n    GET /v1/base-models?task_type=decoder          — decoder/LLM models only\n    GET /v1/base-models?task_type=embedding        — text embedding models only",
        "operationId": "list_base_models_v1_base_models_get",
        "parameters": [
          {
            "description": "Filter to models that support fine-tuning",
            "in": "query",
            "name": "supports_training",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to models that support fine-tuning",
              "title": "Supports Training"
            }
          },
          {
            "description": "Filter to models with serverless inference",
            "in": "query",
            "name": "supports_inference",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "boolean"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter to models with serverless inference",
              "title": "Supports Inference"
            }
          },
          {
            "description": "Filter by model architecture: 'encoder' (NER/GLiNER), 'decoder' (LLM), 'systemone' (decision), or 'embedding'",
            "in": "query",
            "name": "task_type",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by model architecture: 'encoder' (NER/GLiNER), 'decoder' (LLM), 'systemone' (decision), or 'embedding'",
              "title": "Task Type"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BaseModelsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [],
        "summary": "List Base Models",
        "tags": [
          "model-catalog"
        ]
      }
    },
    "/v1/chat/completions": {
      "post": {
        "description": "Serve an OpenAI-compatible chat completion.",
        "operationId": "chat_completions_v1_chat_completions_post",
        "parameters": [
          {
            "description": "Set to `true` to wait for a cold model instead of getting an immediate 425. The request waits up to 150 seconds for the model to start, then runs. A model still starting after that returns the usual 425 with `Retry-After`. Accepts `true`, `1` or `yes` in any case; any other value is ignored. Streaming requests do not use this header.",
            "in": "header",
            "name": "X-Fastino-Wait-For-Model",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Set to `true` to wait for a cold model instead of getting an immediate 425. The request waits up to 150 seconds for the model to start, then runs. A model still starting after that returns the usual 425 with `Retry-After`. Accepts `true`, `1` or `yes` in any case; any other value is ignored. Streaming requests do not use this header.",
              "title": "X-Fastino-Wait-For-Model"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChatCompletionRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChatCompletionResponse"
                }
              },
              "text/event-stream": {
                "example": "data: {\"id\":\"chatcmpl-abc\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"deepseek-ai/DeepSeek-V4-Flash\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"Hi\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-abc\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"deepseek-ai/DeepSeek-V4-Flash\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":1,\"completion_tokens\":1,\"total_tokens\":2}}\n\ndata: [DONE]\n\n",
                "schema": {
                  "description": "OpenAI-compatible chat completion streaming chunk.\n\n    One of these is JSON-serialized into each ``data: {...}\n\n`` SSE event\n    emitted by the chat completions handler when ``stream=true``. The stream\n    is terminated by a literal ``data: [DONE]\n\n`` sentinel that does not\n    follow this schema.\n\n    ``x_fastino`` mirrors the field on the non-streaming response. When\n    persistence ran or an encoder default schema was applied, it is emitted\n    in a separate metadata chunk after the chunk carrying ``finish_reason``\n    and before the optional usage chunk and ``[DONE]`` sentinel. Content\n    chunks omit it.\n    ",
                  "properties": {
                    "choices": {
                      "items": {
                        "description": "One choice slot inside a streaming chunk.",
                        "properties": {
                          "delta": {
                            "description": "Incremental delta payload inside a streaming chunk's choice.\n\n``reasoning_content`` is an optional extension for callers that request\nvisible reasoning with ``exclude=false`` or ``display=summarized``.\nIt is omitted by default so reasoning text is not rendered as assistant\noutput by OpenAI-compatible clients.",
                            "properties": {
                              "content": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "title": "Content"
                              },
                              "reasoning_content": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "title": "Reasoning Content"
                              },
                              "tool_calls": {
                                "anyOf": [
                                  {
                                    "items": {
                                      "additionalProperties": true,
                                      "type": "object"
                                    },
                                    "type": "array"
                                  },
                                  {
                                    "type": "null"
                                  }
                                ],
                                "title": "Tool Calls"
                              }
                            },
                            "title": "ChatCompletionStreamDelta",
                            "type": "object"
                          },
                          "finish_reason": {
                            "anyOf": [
                              {
                                "type": "string"
                              },
                              {
                                "type": "null"
                              }
                            ],
                            "title": "Finish Reason"
                          },
                          "index": {
                            "default": 0,
                            "title": "Index",
                            "type": "integer"
                          }
                        },
                        "title": "ChatCompletionStreamChoice",
                        "type": "object"
                      },
                      "title": "Choices",
                      "type": "array"
                    },
                    "created": {
                      "title": "Created",
                      "type": "integer"
                    },
                    "id": {
                      "title": "Id",
                      "type": "string"
                    },
                    "model": {
                      "title": "Model",
                      "type": "string"
                    },
                    "object": {
                      "default": "chat.completion.chunk",
                      "title": "Object",
                      "type": "string"
                    },
                    "usage": {
                      "anyOf": [
                        {
                          "description": "Token usage statistics.\n\n``prompt_tokens`` follows the upstream wire contract — *includes* every\ninput class (non-cached, cache read, and cache write). The breakdown is\nexposed under ``prompt_tokens_details`` so consumers can attribute the\ncached-read and cache-write subsets.",
                          "properties": {
                            "completion_tokens": {
                              "default": 0,
                              "title": "Completion Tokens",
                              "type": "integer"
                            },
                            "prompt_tokens": {
                              "default": 0,
                              "title": "Prompt Tokens",
                              "type": "integer"
                            },
                            "prompt_tokens_details": {
                              "anyOf": [
                                {
                                  "description": "Per-input-class breakdown for OpenAI-shape usage payloads.\n\nMirrors OpenAI's ``prompt_tokens_details`` block and the industry\ncache-creation extension so clients reading\n``usage.prompt_tokens_details.cached_tokens`` /\n``cache_write_tokens`` keep working when Fastino relays a cache-aware\nupstream response. Both counts are subsets of ``prompt_tokens`` on the\nwire — that's the upstream contract Fastino relays faithfully.",
                                  "properties": {
                                    "cache_write_tokens": {
                                      "default": 0,
                                      "title": "Cache Write Tokens",
                                      "type": "integer"
                                    },
                                    "cached_tokens": {
                                      "default": 0,
                                      "title": "Cached Tokens",
                                      "type": "integer"
                                    }
                                  },
                                  "title": "PromptTokensDetails",
                                  "type": "object"
                                },
                                {
                                  "type": "null"
                                }
                              ]
                            },
                            "total_tokens": {
                              "default": 0,
                              "title": "Total Tokens",
                              "type": "integer"
                            }
                          },
                          "title": "ChatCompletionUsage",
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "x_fastino": {
                      "anyOf": [
                        {
                          "description": "Fastino-specific extension fields appended to OpenAI-compatible responses.\n\nOpenAI's API contract reserves the unprefixed top-level keys (``id``,\n``choices``, ``usage``, …); custom data must live under a clearly\nnamespaced key. ``x_fastino`` is that key.",
                          "properties": {
                            "default_schema_applied": {
                              "default": false,
                              "title": "Default Schema Applied",
                              "type": "boolean"
                            },
                            "inference_id": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "title": "Inference Id"
                            },
                            "truncated": {
                              "default": false,
                              "title": "Truncated",
                              "type": "boolean"
                            }
                          },
                          "title": "FastinoExtension",
                          "type": "object"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "model",
                    "choices"
                  ],
                  "title": "ChatCompletionStreamChunk",
                  "type": "object"
                }
              }
            },
            "description": "Chat completion. Returns ``application/json`` (``ChatCompletionResponse``) by default, or ``text/event-stream`` of ``ChatCompletionStreamChunk`` events terminated by ``data: [DONE]`` when ``stream=true``.",
            "headers": {
              "X-Fastino-Data-Retention": {
                "description": "Retention the server applied to this call: `zero` under team Zero Data Retention, `not-stored` when the request opted out of inference history, `stored` otherwise. Absent on error responses and on streams that fail before provider dispatch; a stream that fails after dispatch keeps it and reports the error in-band.",
                "schema": {
                  "enum": [
                    "zero",
                    "not-stored",
                    "stored"
                  ],
                  "type": "string"
                }
              },
              "X-Fastino-Served-Model": {
                "description": "Canonical id of the model that served this call after resolution: the fine-tuned model id when a fine-tune served it, otherwise the base model id. Absent on error responses and on streams that fail before provider dispatch; a stream that fails after dispatch keeps it and reports the error in-band.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "425": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "model_warming",
                    "message": "Model is warming up",
                    "type": "invalid_request_error"
                  }
                },
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The model is temporarily warming. Wait the number of seconds in `Retry-After`, then retry the same request with a bounded retry policy.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next attempt.",
                "schema": {
                  "minimum": 1.0,
                  "type": "integer"
                }
              },
              "x-should-retry": {
                "description": "`true`; SDK clients with retries enabled wait `Retry-After` and retry.",
                "schema": {
                  "enum": [
                    "true"
                  ],
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Chat Completions",
        "tags": [
          "openai-compat"
        ]
      }
    },
    "/v1/datasets": {
      "get": {
        "description": "Lists visible datasets.",
        "operationId": "list_datasets_v1_datasets_get",
        "parameters": [
          {
            "in": "query",
            "name": "include_all_versions",
            "required": false,
            "schema": {
              "default": false,
              "title": "Include All Versions",
              "type": "boolean"
            }
          },
          {
            "description": "Filter by project ID. For a real project, orphan (no-project) datasets are included only when include_orphans=True. Omitted or the 'default' sentinel always includes orphans.",
            "in": "query",
            "name": "project_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by project ID. For a real project, orphan (no-project) datasets are included only when include_orphans=True. Omitted or the 'default' sentinel always includes orphans.",
              "title": "Project Id"
            }
          },
          {
            "description": "When true, include the caller's own failed datasets (status='failed'). Defaults to false. The result set is always scoped to the authenticated user — this flag does not grant cross-user visibility.",
            "in": "query",
            "name": "include_failed",
            "required": false,
            "schema": {
              "default": false,
              "description": "When true, include the caller's own failed datasets (status='failed'). Defaults to false. The result set is always scoped to the authenticated user — this flag does not grant cross-user visibility.",
              "title": "Include Failed",
              "type": "boolean"
            }
          },
          {
            "description": "When true and project_id names a real project, also include the caller's own orphan (no-project) datasets alongside the project's own rows. Ignored when project_id is omitted or is the 'default' sentinel, where orphans are always included regardless. Defaults to false so an ordinary project-scoped list stays scoped to the project instead of being swamped by every one of the caller's orphans.",
            "in": "query",
            "name": "include_orphans",
            "required": false,
            "schema": {
              "default": false,
              "description": "When true and project_id names a real project, also include the caller's own orphan (no-project) datasets alongside the project's own rows. Ignored when project_id is omitted or is the 'default' sentinel, where orphans are always included regardless. Defaults to false so an ordinary project-scoped list stays scoped to the project instead of being swamped by every one of the caller's orphans.",
              "title": "Include Orphans",
              "type": "boolean"
            }
          },
          {
            "description": "Maximum datasets to return, newest first, after collapsing to the latest version per name. Defaults to and is bounded at 200 (oversize requests are rejected, matching /v1/training/jobs and /projects/{id}/evaluation-runs). Callers that need the full set should page with limit and offset until a short page is returned.",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maximum": 200,
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "default": 200,
              "description": "Maximum datasets to return, newest first, after collapsing to the latest version per name. Defaults to and is bounded at 200 (oversize requests are rejected, matching /v1/training/jobs and /projects/{id}/evaluation-runs). Callers that need the full set should page with limit and offset until a short page is returned.",
              "title": "Limit"
            }
          },
          {
            "description": "Number of leading datasets to skip.",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "description": "Number of leading datasets to skip.",
              "maximum": 10000000,
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List Datasets",
        "tags": [
          "datasets"
        ]
      }
    },
    "/v1/datasets/upload/process": {
      "post": {
        "description": "Queues processing for a reserved dataset upload.",
        "operationId": "process_uploaded_dataset_v1_datasets_upload_process_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DatasetUploadProcessRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "503": {
            "description": "The uploaded file could not be verified in storage, or the processing job could not be queued. The upload can be processed again. Retryable."
          }
        },
        "summary": "Process Uploaded Dataset",
        "tags": [
          "datasets"
        ]
      }
    },
    "/v1/datasets/upload/url": {
      "post": {
        "description": "Creates a reserved dataset row and presigned upload URL.",
        "operationId": "get_upload_url_v1_datasets_upload_url_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DatasetUploadUrlRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetUploadUrlResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get Upload Url",
        "tags": [
          "datasets"
        ]
      }
    },
    "/v1/datasets/{name}": {
      "delete": {
        "description": "Soft-delete a dataset and all its versions.",
        "operationId": "delete_dataset_v1_datasets__name__delete",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "title": "Name",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Delete Dataset",
        "tags": [
          "datasets"
        ]
      },
      "get": {
        "description": "Lists all visible versions of a dataset.",
        "operationId": "list_dataset_versions_v1_datasets__name__get",
        "parameters": [
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "title": "Name",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DatasetVersionsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List Dataset Versions",
        "tags": [
          "datasets"
        ]
      }
    },
    "/v1/gliner-2": {
      "post": {
        "description": "Process text using the GLiNER-2 base model.\n\n``task`` is optional — when omitted the unified schema path is used.\nLegacy task names are still accepted but deprecated.",
        "operationId": "gliner2_process_v1_gliner_2_post",
        "parameters": [
          {
            "description": "Set to `true` to wait for a cold model instead of getting an immediate 425. The request waits up to 150 seconds for the model to start, then runs. A model still starting after that returns the usual 425 with `Retry-After`. Accepts `true`, `1` or `yes` in any case; any other value is ignored. Streaming requests do not use this header.",
            "in": "header",
            "name": "X-Fastino-Wait-For-Model",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Set to `true` to wait for a cold model instead of getting an immediate 425. The request waits up to 150 seconds for the model to start, then runs. A model still starting after that returns the usual 425 with `Retry-After`. Accepts `true`, `1` or `yes` in any case; any other value is ignored. Streaming requests do not use this header.",
              "title": "X-Fastino-Wait-For-Model"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/GlinerRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlinerResponse"
                }
              }
            },
            "description": "Successful Response",
            "headers": {
              "X-Fastino-Data-Retention": {
                "description": "Retention the server applied to this call: `zero` under team Zero Data Retention, `not-stored` when the request opted out of inference history, `stored` otherwise. Absent on error responses and on streams that fail before provider dispatch; a stream that fails after dispatch keeps it and reports the error in-band.",
                "schema": {
                  "enum": [
                    "zero",
                    "not-stored",
                    "stored"
                  ],
                  "type": "string"
                }
              },
              "X-Fastino-Served-Model": {
                "description": "Canonical id of the model that served this call after resolution: the fine-tuned model id when a fine-tune served it, otherwise the base model id. Absent on error responses and on streams that fail before provider dispatch; a stream that fails after dispatch keeps it and reports the error in-band.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Gliner2 Process",
        "tags": [
          "gliner"
        ]
      }
    },
    "/v1/gliner-2/async": {
      "post": {
        "description": "Submit large GLiNER-2 request for async processing.\n\nUse this endpoint when processing >1M tokens that would exceed the 30-second\ntimeout. Returns immediately with a job_id; poll GET /gliner-2/jobs/{job_id}.\nWith Zero Data Retention, the text is never stored and the result is deleted on\nits first read, or 24 hours after the job finishes if it is never read.",
        "operationId": "gliner2_async_v1_gliner_2_async_post",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AsyncGlinerRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AsyncGlinerResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Gliner2 Async",
        "tags": [
          "gliner"
        ]
      }
    },
    "/v1/gliner-2/jobs/{job_id}": {
      "get": {
        "description": "Get status and result of an async GLiNER-2 job.\n\nPossible outcomes:\n- 200 with status=\"complete\" and result when done\n- 200 with status=\"processing\" while in progress\n- 200 with status=\"error\" and error message if failed\n- 404 if job not found or belongs to different user\n- With Zero Data Retention, the result is returned once, then deleted (see notice)",
        "operationId": "gliner2_job_status_v1_gliner_2_jobs__job_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GlinerJobStatus"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Gliner2 Job Status",
        "tags": [
          "gliner"
        ]
      }
    },
    "/v1/inferences": {
      "get": {
        "description": "List inference history for the authenticated user.\n\nReturns all inference records across all model types (NER, classification,\nJSON extraction, decoder) sorted by most recent first.",
        "operationId": "list_inference_history_v1_inferences_get",
        "parameters": [
          {
            "description": "Maximum records to return",
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 100,
              "description": "Maximum records to return",
              "maximum": 500,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "description": "Number of records to skip",
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "description": "Number of records to skip",
              "maximum": 10000000,
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            }
          },
          {
            "description": "Filter by model ID",
            "in": "query",
            "name": "model_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by model ID",
              "title": "Model Id"
            }
          },
          {
            "description": "Filter by task type",
            "in": "query",
            "name": "task",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by task type",
              "title": "Task"
            }
          },
          {
            "description": "Filter by project ID",
            "in": "query",
            "name": "project_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by project ID",
              "title": "Project Id"
            }
          },
          {
            "description": "Filter by training job ID",
            "in": "query",
            "name": "training_job_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Filter by training job ID",
              "title": "Training Job Id"
            }
          },
          {
            "description": "Minimum latency in ms (must be >= 0).",
            "in": "query",
            "name": "latency_min",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "minimum": 0,
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Minimum latency in ms (must be >= 0).",
              "title": "Latency Min"
            }
          },
          {
            "description": "Maximum latency in ms (must be >= 0).",
            "in": "query",
            "name": "latency_max",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "minimum": 0,
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Maximum latency in ms (must be >= 0).",
              "title": "Latency Max"
            }
          },
          {
            "description": "Minimum LLM-as-Judge score in [0.0, 1.0].",
            "in": "query",
            "name": "llmaj_score_min",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maximum": 1.0,
                  "minimum": 0.0,
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Minimum LLM-as-Judge score in [0.0, 1.0].",
              "title": "Llmaj Score Min"
            }
          },
          {
            "description": "Maximum LLM-as-Judge score in [0.0, 1.0].",
            "in": "query",
            "name": "llmaj_score_max",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maximum": 1.0,
                  "minimum": 0.0,
                  "type": "number"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Maximum LLM-as-Judge score in [0.0, 1.0].",
              "title": "Llmaj Score Max"
            }
          },
          {
            "description": "Inclusive lower bound on created_at (ISO 8601, UTC).",
            "in": "query",
            "name": "since",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Inclusive lower bound on created_at (ISO 8601, UTC).",
              "title": "Since"
            }
          },
          {
            "description": "Exclusive upper bound on created_at (ISO 8601, UTC).",
            "in": "query",
            "name": "until",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Exclusive upper bound on created_at (ISO 8601, UTC).",
              "title": "Until"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InferenceListResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "503": {
            "description": "Inference history dependency is temporarily unavailable."
          }
        },
        "summary": "List Inference History",
        "tags": [
          "inference-history"
        ]
      }
    },
    "/v1/inferences/{inference_id}": {
      "get": {
        "description": "Get a single inference record by ID.",
        "operationId": "get_inference_detail_v1_inferences__inference_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "inference_id",
            "required": true,
            "schema": {
              "title": "Inference Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InferenceRecord"
                }
              }
            },
            "description": "Successful Response"
          },
          "404": {
            "description": "Inference not found."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "503": {
            "description": "Inference history dependency is temporarily unavailable."
          }
        },
        "summary": "Get Inference Detail",
        "tags": [
          "inference-history"
        ]
      }
    },
    "/v1/inferences/{inference_id}/feedback": {
      "get": {
        "description": "Get human feedback for a specific inference.",
        "operationId": "get_inference_feedback_v1_inferences__inference_id__feedback_get",
        "parameters": [
          {
            "in": "path",
            "name": "inference_id",
            "required": true,
            "schema": {
              "title": "Inference Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InferenceFeedbackResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "404": {
            "description": "Feedback not found."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "503": {
            "description": "Inference history dependency is temporarily unavailable."
          }
        },
        "summary": "Get Inference Feedback",
        "tags": [
          "inference-history"
        ]
      },
      "post": {
        "description": "Submit human feedback on a specific inference.\n\nMarks an inference as correct or incorrect. When marking as incorrect,\nthe expected output must be provided for downstream training data curation.",
        "operationId": "submit_inference_feedback_v1_inferences__inference_id__feedback_post",
        "parameters": [
          {
            "in": "path",
            "name": "inference_id",
            "required": true,
            "schema": {
              "title": "Inference Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InferenceFeedbackRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InferenceFeedbackResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "403": {
            "description": "Caller lacks edit access on the team."
          },
          "404": {
            "description": "Inference not found."
          },
          "422": {
            "description": "Invalid feedback payload."
          },
          "503": {
            "description": "Inference history dependency is temporarily unavailable."
          }
        },
        "summary": "Submit Inference Feedback",
        "tags": [
          "inference-history"
        ]
      }
    },
    "/v1/messages": {
      "post": {
        "description": "Serve an Anthropic-compatible Messages request.",
        "operationId": "messages_v1_messages_post",
        "parameters": [
          {
            "description": "Set to `true` to wait for a cold model instead of getting an immediate 425. The request waits up to 150 seconds for the model to start, then runs. A model still starting after that returns the usual 425 with `Retry-After`. Accepts `true`, `1` or `yes` in any case; any other value is ignored. Streaming requests do not use this header.",
            "in": "header",
            "name": "X-Fastino-Wait-For-Model",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Set to `true` to wait for a cold model instead of getting an immediate 425. The request waits up to 150 seconds for the model to start, then runs. A model still starting after that returns the usual 425 with `Retry-After`. Accepts `true`, `1` or `yes` in any case; any other value is ignored. Streaming requests do not use this header.",
              "title": "X-Fastino-Wait-For-Model"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AnthropicMessagesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnthropicMessagesResponse"
                }
              }
            },
            "description": "Non-streaming Anthropic Messages response. When the request sets ``stream=true`` the server emits an Anthropic-shaped SSE event stream over ``text/event-stream`` instead; that stream shape is documented in the Anthropic Messages API reference.",
            "headers": {
              "X-Fastino-Data-Retention": {
                "description": "Retention the server applied to this call: `zero` under team Zero Data Retention, `not-stored` when the request opted out of inference history, `stored` otherwise. Absent on error responses and on streams that fail before provider dispatch; a stream that fails after dispatch keeps it and reports the error in-band.",
                "schema": {
                  "enum": [
                    "zero",
                    "not-stored",
                    "stored"
                  ],
                  "type": "string"
                }
              },
              "X-Fastino-Served-Model": {
                "description": "Canonical id of the model that served this call after resolution: the fine-tuned model id when a fine-tune served it, otherwise the base model id. Absent on error responses and on streams that fail before provider dispatch; a stream that fails after dispatch keeps it and reports the error in-band.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI envelope unless the request sends `anthropic-version`, in which case the Anthropic `{type: error, error: {type, message}}` body is returned.",
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/HTTPValidationError"
                    },
                    {
                      "$ref": "#/components/schemas/AnthropicError"
                    }
                  ]
                }
              }
            },
            "description": "Validation Error"
          },
          "425": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "message": "Model is warming up",
                    "type": "invalid_request_error"
                  },
                  "type": "error"
                },
                "schema": {
                  "oneOf": [
                    {
                      "description": "OpenAI-compatible error envelope returned by this endpoint.",
                      "properties": {
                        "error": {
                          "properties": {
                            "code": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "title": "Code"
                            },
                            "message": {
                              "title": "Message",
                              "type": "string"
                            },
                            "param": {
                              "anyOf": [
                                {
                                  "type": "string"
                                },
                                {
                                  "type": "null"
                                }
                              ],
                              "title": "Param"
                            },
                            "type": {
                              "title": "Type",
                              "type": "string"
                            }
                          },
                          "required": [
                            "message",
                            "type",
                            "param",
                            "code"
                          ],
                          "title": "Error",
                          "type": "object"
                        }
                      },
                      "required": [
                        "error"
                      ],
                      "title": "OpenAIError",
                      "type": "object"
                    },
                    {
                      "description": "Anthropic error envelope returned when the request includes `anthropic-version`. Distinct from the OpenAI `{error: {message, type, param, code}}` body.",
                      "properties": {
                        "error": {
                          "properties": {
                            "message": {
                              "title": "Message",
                              "type": "string"
                            },
                            "type": {
                              "title": "Type",
                              "type": "string"
                            }
                          },
                          "required": [
                            "type",
                            "message"
                          ],
                          "title": "Error",
                          "type": "object"
                        },
                        "type": {
                          "enum": [
                            "error"
                          ],
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "type",
                        "error"
                      ],
                      "title": "AnthropicError",
                      "type": "object"
                    }
                  ]
                }
              }
            },
            "description": "The model is temporarily warming. Wait the number of seconds in `Retry-After`, then retry the same request with a bounded retry policy.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next attempt.",
                "schema": {
                  "minimum": 1.0,
                  "type": "integer"
                }
              },
              "x-should-retry": {
                "description": "`true`; SDK clients with retries enabled wait `Retry-After` and retry.",
                "schema": {
                  "enum": [
                    "true"
                  ],
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Messages",
        "tags": [
          "anthropic-compat"
        ]
      }
    },
    "/v1/model-status/{model_id}": {
      "get": {
        "description": "Report whether a model is ready, starting, or cold.",
        "operationId": "get_model_status_v1_model_status__model_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "title": "Model Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelStatusResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The API key is missing, malformed, or invalid."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "Insufficient credits, funding required, or an owner-set daily or monthly spend limit was reached."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "A payment method, card verification, or account policy requirement blocks the request."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The model does not exist or this caller cannot use it."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The fine-tuned model exists but is not deployed."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "425": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The fine-tuned model is still being published; retry after `Retry-After`."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "A rate limit was reached. Wait for `Retry-After` when present, then retry."
          },
          "451": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The model is not available in the caller's jurisdiction."
          }
        },
        "summary": "Check whether a model can serve now",
        "tags": [
          "models"
        ]
      }
    },
    "/v1/model-status/{model_id}/warm": {
      "post": {
        "description": "Start the wake-up a cold inference call would start, without running inference.\n\nSafe to repeat: every caller shares one wake-up. It is not billed.",
        "operationId": "warm_model_v1_model_status__model_id__warm_post",
        "parameters": [
          {
            "in": "path",
            "name": "model_id",
            "required": true,
            "schema": {
              "title": "Model Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelStatusResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The API key is missing, malformed, or invalid."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "Insufficient credits, funding required, or an owner-set daily or monthly spend limit was reached."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "A payment method, card verification, or account policy requirement blocks the request."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The model does not exist or this caller cannot use it."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The fine-tuned model exists but is not deployed."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "425": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The fine-tuned model is still being published; retry after `Retry-After`."
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "A rate limit was reached. Wait for `Retry-After` when present, then retry."
          },
          "451": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The model is not available in the caller's jurisdiction."
          }
        },
        "summary": "Start waking a cold model",
        "tags": [
          "models"
        ]
      }
    },
    "/v1/models": {
      "get": {
        "description": "List available Anthropic-compatible models.\n\nAuthentication is optional. Anonymous callers receive the public runtime\ncatalog; authenticated callers also receive their user-scoped decoder\nfine-tunes.",
        "operationId": "list_models_v1_models_get",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maximum": 1000,
                  "minimum": 1,
                  "type": "integer"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Limit"
            }
          },
          {
            "in": "query",
            "name": "before_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Before Id"
            }
          },
          {
            "in": "query",
            "name": "after_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "After Id"
            }
          },
          {
            "in": "query",
            "name": "client_version",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Client Version"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "security": [],
        "summary": "List Models",
        "tags": [
          "anthropic-compat"
        ]
      }
    },
    "/v1/responses": {
      "post": {
        "description": "Serve an OpenAI-compatible Responses request.",
        "operationId": "responses_v1_responses_post",
        "parameters": [
          {
            "description": "Set to `true` to wait for a cold model instead of getting an immediate 425. The request waits up to 150 seconds for the model to start, then runs. A model still starting after that returns the usual 425 with `Retry-After`. Accepts `true`, `1` or `yes` in any case; any other value is ignored. Streaming requests do not use this header.",
            "in": "header",
            "name": "X-Fastino-Wait-For-Model",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Set to `true` to wait for a cold model instead of getting an immediate 425. The request waits up to 150 seconds for the model to start, then runs. A model still starting after that returns the usual 425 with `Retry-After`. Accepts `true`, `1` or `yes` in any case; any other value is ignored. Streaming requests do not use this header.",
              "title": "X-Fastino-Wait-For-Model"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResponsesRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {}
              }
            },
            "description": "Successful Response",
            "headers": {
              "X-Fastino-Data-Retention": {
                "description": "Retention the server applied to this call: `zero` under team Zero Data Retention, `not-stored` when the request opted out of inference history, `stored` otherwise. Absent on error responses and on streams that fail before provider dispatch; a stream that fails after dispatch keeps it and reports the error in-band.",
                "schema": {
                  "enum": [
                    "zero",
                    "not-stored",
                    "stored"
                  ],
                  "type": "string"
                }
              },
              "X-Fastino-Served-Model": {
                "description": "Canonical id of the model that served this call after resolution: the fine-tuned model id when a fine-tune served it, otherwise the base model id. Absent on error responses and on streams that fail before provider dispatch; a stream that fails after dispatch keeps it and reports the error in-band.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "425": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "model_warming",
                    "message": "Model is warming up",
                    "type": "invalid_request_error"
                  }
                },
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The model is temporarily warming. Wait the number of seconds in `Retry-After`, then retry the same request with a bounded retry policy.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next attempt.",
                "schema": {
                  "minimum": 1.0,
                  "type": "integer"
                }
              },
              "x-should-retry": {
                "description": "`true`; SDK clients with retries enabled wait `Retry-After` and retry.",
                "schema": {
                  "enum": [
                    "true"
                  ],
                  "type": "string"
                }
              }
            }
          }
        },
        "summary": "Responses",
        "tags": [
          "openai-compat"
        ]
      }
    },
    "/v1/systemone": {
      "post": {
        "description": "Answer a batch of questions about one state.\n\nSend `store: false` to keep neither the input nor the output; usage metadata is still\nrecorded for billing. See the `store` field.",
        "operationId": "decide_v1_systemone_post",
        "parameters": [
          {
            "description": "Set to `true` to wait for a cold model instead of getting an immediate 425. The request waits up to 150 seconds for the model to start, then runs. A model still starting after that returns the usual 425 with `Retry-After`. Accepts `true`, `1` or `yes` in any case; any other value is ignored. Streaming requests do not use this header.",
            "in": "header",
            "name": "X-Fastino-Wait-For-Model",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Set to `true` to wait for a cold model instead of getting an immediate 425. The request waits up to 150 seconds for the model to start, then runs. A model still starting after that returns the usual 425 with `Retry-After`. Accepts `true`, `1` or `yes` in any case; any other value is ignored. Streaming requests do not use this header.",
              "title": "X-Fastino-Wait-For-Model"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SystemOneRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SystemOneResponse"
                }
              }
            },
            "description": "Successful Response",
            "headers": {
              "X-Fastino-Data-Retention": {
                "description": "Retention the server applied to this call: `zero` under team Zero Data Retention, `not-stored` when the request opted out of inference history, `stored` otherwise. Absent on error responses and on streams that fail before provider dispatch; a stream that fails after dispatch keeps it and reports the error in-band.",
                "schema": {
                  "enum": [
                    "zero",
                    "not-stored",
                    "stored"
                  ],
                  "type": "string"
                }
              },
              "X-Fastino-Served-Model": {
                "description": "Canonical id of the model that served this call after resolution: the fine-tuned model id when a fine-tune served it, otherwise the base model id. Absent on error responses and on streams that fail before provider dispatch; a stream that fails after dispatch keeps it and reports the error in-band.",
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "A rendered question prompt exceeds the context window or another input is invalid. Shorten `state` or correct the question."
          },
          "401": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The API key is missing, malformed, or invalid."
          },
          "402": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "Insufficient credits, funding required, or an owner-set daily or monthly spend limit was reached."
          },
          "403": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "A payment method, card verification, credit ceiling, or account policy requirement blocks the request."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The model is unknown or is not served by `/v1/systemone`."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "425": {
            "content": {
              "application/json": {
                "example": {
                  "error": {
                    "code": "model_warming",
                    "message": "Model is warming up",
                    "type": "invalid_request_error"
                  }
                },
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The model is temporarily warming. Wait the number of seconds in `Retry-After`, then retry the same request with a bounded retry policy.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before the next attempt.",
                "schema": {
                  "minimum": 1.0,
                  "type": "integer"
                }
              },
              "x-should-retry": {
                "description": "`true`; SDK clients with retries enabled wait `Retry-After` and retry.",
                "schema": {
                  "enum": [
                    "true"
                  ],
                  "type": "string"
                }
              }
            }
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "A rate or capacity limit was reached. Wait for `Retry-After` when present, then retry with bounded backoff."
          },
          "502": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The serving provider returned an invalid or failed response. Retry with backoff."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "A temporary provider or serving failure. Retry with bounded backoff before treating it as terminal."
          }
        },
        "summary": "Decide",
        "tags": [
          "systemone"
        ]
      }
    },
    "/v1/training/jobs": {
      "get": {
        "description": "List training jobs, config and interactive (Tinker training runs), newest first by `created_at`, with `type` to list one type. `status` filters both: interactive jobs on their own statuses (`creating`, `active`, `stopping`, `stopped`, `failed`), with `running` matching active ones and `errored` failed ones.",
        "operationId": "list_jobs_v1_training_jobs_get",
        "parameters": [
          {
            "in": "query",
            "name": "type",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "enum": [
                    "config",
                    "interactive"
                  ],
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Type"
            }
          },
          {
            "in": "query",
            "name": "status",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Status"
            }
          },
          {
            "in": "query",
            "name": "project_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Id"
            }
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "default": 200,
              "maximum": 200,
              "minimum": 1,
              "title": "Limit",
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "default": 0,
              "maximum": 10000000,
              "minimum": 0,
              "title": "Offset",
              "type": "integer"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingJobsPage"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List Jobs",
        "tags": [
          "training"
        ]
      },
      "post": {
        "description": "Create a new training job.",
        "operationId": "create_training_job_v1_training_jobs_post",
        "parameters": [
          {
            "description": "Client-generated key (a UUID is ideal) that makes the create safe to retry. A repeat with the same key and body returns the original job instead of launching another; the same key with a different body is rejected with 422.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Client-generated key (a UUID is ideal) that makes the create safe to retry. A repeat with the same key and body returns the original job instead of launching another; the same key with a different body is rejected with 422.",
              "title": "Idempotency-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingJobCreate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingJobResponse"
                }
              }
            },
            "description": "Successful Response",
            "headers": {
              "Idempotent-Replayed": {
                "description": "``true`` when a keyed repeat returned the original job.",
                "schema": {
                  "enum": [
                    "true"
                  ],
                  "type": "string"
                }
              }
            }
          },
          "409": {
            "description": "``duplicate_training_submission``: an identical job is live. ``idempotency_key_job_deleted``: the job this key created was deleted. A referenced dataset may also retire before insertion."
          },
          "422": {
            "content": {
              "application/json": {
                "examples": {
                  "idempotency_key_reused": {
                    "summary": "Idempotency-Key reused for a different body",
                    "value": {
                      "error": {
                        "code": "idempotency_key_reused",
                        "message": "This Idempotency-Key was already used for a different training request. Use a new key for new work, or resend the original request to receive the job it created.",
                        "type": "invalid_request_error"
                      }
                    }
                  }
                },
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Request validation failed, or ``idempotency_key_reused`` in ``error.code``: this Idempotency-Key was already used for a different request body."
          }
        },
        "summary": "Create Training Job",
        "tags": [
          "training-jobs"
        ]
      }
    },
    "/v1/training/jobs/create-model": {
      "post": {
        "description": "Create a LoRA training job on a decoder base model that you train step by step (Tinker's `create_model`), or restore one from a training-state checkpoint. The GLiDE models (`fastino/GLiDE`, `fastino/GLiDE-0.8B`, `fastino/GLiDE-2B`) train every weight (no `lora_config`) on decision rows. Encoder (GLiNER) models train from a dataset with `POST /v1/training/jobs`. When the team has no live training slots available, the request is accepted and its future waits until a slot opens. Read the result at GET /v1/training/jobs/{job_id}/futures/{future_id}.",
        "operationId": "create_model_v1_training_jobs_create_model_post",
        "parameters": [
          {
            "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
              "title": "Idempotency-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateModelBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateModelAccepted"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Create an interactive training job",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}": {
      "delete": {
        "description": "Delete a training job and its checkpoints (an interactive job is stopped first if it is active).",
        "operationId": "delete_training_job_v1_training_jobs__job_id__delete",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeleteTrainingJobResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The cancel did not land. `error.code` is `training_job_already_finished` when the job completed or failed first, or `cancellation_unconfirmed` when it may be retried."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Delete Training Job",
        "tags": [
          "training-jobs"
        ]
      },
      "get": {
        "description": "Get one training job: a config job, or an interactive job (a Tinker training run) with its latest checkpoints, its `status` and, once stopping or stopped, its `stop_reason`.",
        "operationId": "get_job_v1_training_jobs__job_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/TrainingJobResponse"
                    },
                    {
                      "$ref": "#/components/schemas/InteractiveJobView"
                    }
                  ],
                  "title": "Response Get Job V1 Training Jobs  Job Id  Get"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get Job",
        "tags": [
          "training"
        ]
      },
      "patch": {
        "description": "Patch a training job. Currently exposes only ``project_id``.\n\nSend ``project_id: null`` to unassign the job. Moving a job changes only\nits project association; related resources are not moved automatically.",
        "operationId": "update_training_job_v1_training_jobs__job_id__patch",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TrainingJobUpdate"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateResourceProjectResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Update Training Job",
        "tags": [
          "training-jobs"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/billing": {
      "get": {
        "description": "Get the billing outcome for a specific training job, by job ID.\n\nReports whether the job was billed and, if so, the charge and compute\nduration. The route uses the same access controls as other training-job\nread endpoints.",
        "operationId": "get_training_job_billing_v1_training_jobs__job_id__billing_get",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingJobBillingResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get Training Job Billing",
        "tags": [
          "training-jobs"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/checkpoints": {
      "get": {
        "description": "List a training job's checkpoints (an interactive job's newest first).",
        "operationId": "list_job_checkpoints_v1_training_jobs__job_id__checkpoints_get",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/CheckpointListResponse"
                    },
                    {
                      "$ref": "#/components/schemas/TrainingRunCheckpointListResponse"
                    }
                  ],
                  "title": "Response List Job Checkpoints V1 Training Jobs  Job Id  Checkpoints Get"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "List Job Checkpoints",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/checkpoints/sampler_weights/{name}/deploy": {
      "post": {
        "description": "Serve one of the job's sampler checkpoints as a trained model: call it with `POST /v1/chat/completions` and `model=<model_id>`, or deploy it with `POST /v1/projects/{project_id}/deployments`. Deploying the same checkpoint again returns the same model. Its status is `deploying` until the serving engine has loaded it. Only bases the serving catalog loads adapters of are served (Nemotron 3.5 Lightning). `system_prompt` is the system message the checkpoint was trained with: the model sends it first when a caller sends none. It is set once, and deploying the checkpoint again with a different one is a 409.",
        "operationId": "deploy_checkpoint_v1_training_jobs__job_id__checkpoints_sampler_weights__name__deploy_post",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "title": "Name",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/DeployCheckpointRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeployedCheckpoint"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Serve an interactive training job checkpoint",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/checkpoints/{checkpoint_id}/deploy": {
      "post": {
        "description": "Deploy a specific checkpoint to its provider inference location.",
        "operationId": "deploy_checkpoint",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "checkpoint_id",
            "required": true,
            "schema": {
              "title": "Checkpoint Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeployCheckpointResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Deploy Checkpoint To Mme",
        "tags": [
          "training-jobs"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/checkpoints/{checkpoint_id}/download": {
      "get": {
        "description": "Get a short-lived signed URL of a tar archive of one of the team's own checkpoints (for sampler weights, the PEFT adapter files). The URL needs no credentials and expires after 15 minutes. Needs the team's weight-download entitlement, as /v1/training/jobs/{job_id}/download does.",
        "operationId": "download_checkpoint_v1_training_jobs__job_id__checkpoints__checkpoint_id__download_get",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "checkpoint_id",
            "required": true,
            "schema": {
              "title": "Checkpoint Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckpointDownloadResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "403": {
            "description": "For downloading models, please contact sales@fastino.ai"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get a download URL for an interactive training job checkpoint",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/checkpoints/{kind}/{name}": {
      "delete": {
        "description": "Delete the checkpoint; its files are purged later.",
        "operationId": "delete_checkpoint_v1_training_jobs__job_id__checkpoints__kind___name__delete",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "enum": [
                "weights",
                "sampler_weights"
              ],
              "title": "Kind",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "title": "Name",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Delete an interactive training job checkpoint",
        "tags": [
          "training"
        ]
      },
      "get": {
        "description": "One of the job's checkpoints: its `tinker_path`, size, visibility, metadata and expiry.",
        "operationId": "get_checkpoint_v1_training_jobs__job_id__checkpoints__kind___name__get",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "enum": [
                "weights",
                "sampler_weights"
              ],
              "title": "Kind",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "title": "Name",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CheckpointView"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get an interactive training job checkpoint",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/checkpoints/{kind}/{name}/publish": {
      "delete": {
        "description": "Mark a published checkpoint private again.",
        "operationId": "unpublish_checkpoint_v1_training_jobs__job_id__checkpoints__kind___name__publish_delete",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "enum": [
                "weights",
                "sampler_weights"
              ],
              "title": "Kind",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "title": "Name",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Unpublish an interactive training job checkpoint",
        "tags": [
          "training"
        ]
      },
      "post": {
        "description": "Mark the checkpoint public.",
        "operationId": "publish_checkpoint_v1_training_jobs__job_id__checkpoints__kind___name__publish_post",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "enum": [
                "weights",
                "sampler_weights"
              ],
              "title": "Kind",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "title": "Name",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Publish an interactive training job checkpoint",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/checkpoints/{kind}/{name}/ttl": {
      "put": {
        "description": "Keep the checkpoint for `ttl_seconds` from now (1 hour to 10 years), or until deleted when null.",
        "operationId": "set_checkpoint_ttl_v1_training_jobs__job_id__checkpoints__kind___name__ttl_put",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "kind",
            "required": true,
            "schema": {
              "enum": [
                "weights",
                "sampler_weights"
              ],
              "title": "Kind",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "name",
            "required": true,
            "schema": {
              "title": "Name",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SetTtlRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Set an interactive training job checkpoint's TTL",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/deployments": {
      "get": {
        "description": "Return deployments that reference the given training job.",
        "operationId": "get_training_job_deployments_v1_training_jobs__job_id__deployments_get",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "format": "uuid",
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeploymentHistoryResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get deployments for a training job",
        "tags": [
          "training-jobs"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/download": {
      "get": {
        "description": "Generate a presigned S3 URL to download a trained model.\n\nTaking weights off-platform is a write-level action, so it needs an\neditor-level role (a Viewer or Billing member is refused) on top of the\nteam's weight-download entitlement; without either the call returns 403.",
        "operationId": "download_trained_model_v1_training_jobs__job_id__download_get",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModelDownloadResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "403": {
            "description": "For downloading models, please contact sales@fastino.ai"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get download URL for trained model",
        "tags": [
          "training-jobs"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/forward": {
      "post": {
        "description": "Compute the loss of a batch of token-level datums without gradients (Tinker's `forward`). For GLiDE, send `decisions` (rows; no target needed): each result holds the row's option probabilities, as served. Read the result at GET /v1/training/jobs/{job_id}/futures/{future_id}.",
        "operationId": "forward_v1_training_jobs__job_id__forward_post",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
              "title": "Idempotency-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForwardBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FutureAccepted"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The interactive training job already has the maximum number of queued operations."
          }
        },
        "summary": "Queue a forward pass",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/forward-backward": {
      "post": {
        "description": "Compute the loss of a batch of token-level datums and accumulate its gradients for the next optim-step (Tinker's `forward_backward`). For GLiDE, send `decisions` (rows with `gold` and/or `soft_target`); the loss is `glide_decision`. Read the result at GET /v1/training/jobs/{job_id}/futures/{future_id}.",
        "operationId": "forward_backward_v1_training_jobs__job_id__forward_backward_post",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
              "title": "Idempotency-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForwardBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FutureAccepted"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The interactive training job already has the maximum number of queued operations."
          }
        },
        "summary": "Queue a forward-backward pass",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/futures/{future_id}": {
      "get": {
        "description": "A queued call's status, and its result or error once finished (Tinker's `retrieve_future`). With `wait=true` it waits up to 25 seconds for an unfinished one. A result is kept for an hour.",
        "operationId": "get_future_v1_training_jobs__job_id__futures__future_id__get",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "future_id",
            "required": true,
            "schema": {
              "title": "Future Id",
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "wait",
            "required": false,
            "schema": {
              "default": false,
              "title": "Wait",
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingFuture"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get a future of an interactive training job",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/futures/{future_id}/cancel": {
      "post": {
        "description": "Cancel a queued or running sample (best effort). Training calls run in order and are not cancelled.",
        "operationId": "cancel_future_v1_training_jobs__job_id__futures__future_id__cancel_post",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "in": "path",
            "name": "future_id",
            "required": true,
            "schema": {
              "title": "Future Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Cancel a sample future",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/load-weights": {
      "post": {
        "description": "Restore one of the job's saved training states, and optionally its optimizer state (Tinker's `load_state`). Read the result at GET /v1/training/jobs/{job_id}/futures/{future_id}.",
        "operationId": "load_weights_v1_training_jobs__job_id__load_weights_post",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
              "title": "Idempotency-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoadWeightsBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FutureAccepted"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The interactive training job already has the maximum number of queued operations."
          }
        },
        "summary": "Load a training state into an interactive training job",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/logs": {
      "get": {
        "description": "Get training output logs (stdout/stderr) for a specific job.",
        "operationId": "get_training_job_logs_v1_training_jobs__job_id__logs_get",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingLogsResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get Training Job Logs",
        "tags": [
          "training-jobs"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/model-name": {
      "patch": {
        "description": "Update the model_name for a training job.",
        "operationId": "update_training_job_model_name_v1_training_jobs__job_id__model_name_patch",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateModelNameRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateModelNameResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "409": {
            "description": "The job's owner already has a model with this name."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Update Training Job Model Name",
        "tags": [
          "training-jobs"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/optim-step": {
      "post": {
        "description": "Apply the gradients accumulated since the last step with AdamW (Tinker's `optim_step`). Read the result at GET /v1/training/jobs/{job_id}/futures/{future_id}.",
        "operationId": "optim_step_v1_training_jobs__job_id__optim_step_post",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
              "title": "Idempotency-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/OptimStepBody"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FutureAccepted"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The interactive training job already has the maximum number of queued operations."
          }
        },
        "summary": "Queue an optimizer step",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/push-to-hub": {
      "post": {
        "description": "Push a completed training job's model to HuggingFace Hub.",
        "operationId": "push_training_job_to_huggingface_v1_training_jobs__job_id__push_to_hub_post",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/HuggingFacePushModelRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PushModelToHubResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "403": {
            "description": "For downloading models, please contact sales@fastino.ai"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Push Training Job To Huggingface",
        "tags": [
          "training-jobs"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/sample": {
      "post": {
        "description": "Generate continuations of a tokenized prompt with one of the job's sampler checkpoints, also after the job stopped (Tinker's `sample`). Read the result at GET /v1/training/jobs/{job_id}/futures/{future_id}.",
        "operationId": "sample_v1_training_jobs__job_id__sample_post",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
              "title": "Idempotency-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SampleBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FutureAccepted"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The team already has the maximum number of sampling requests in flight."
          }
        },
        "summary": "Sample from an interactive training job",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/save-weights": {
      "post": {
        "description": "Save the LoRA weights and optimizer state under a name, to load later or start a new job from (Tinker's `save_state`). A GLiDE job saves all its weights, or with `soup` the weighted mean of saved states. Read the result at GET /v1/training/jobs/{job_id}/futures/{future_id}.",
        "operationId": "save_weights_v1_training_jobs__job_id__save_weights_post",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
              "title": "Idempotency-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveWeightsBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveWeightsAccepted"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The interactive training job already has the maximum number of queued operations."
          }
        },
        "summary": "Save an interactive training job's training state",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/save-weights-for-sampler": {
      "post": {
        "description": "Save the LoRA weights under a name, to sample from and download as PEFT files (Tinker's `save_weights_for_sampler`). Read the result at GET /v1/training/jobs/{job_id}/futures/{future_id}.",
        "operationId": "save_weights_for_sampler_v1_training_jobs__job_id__save_weights_for_sampler_post",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          },
          {
            "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
            "in": "header",
            "name": "Idempotency-Key",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "maxLength": 255,
                  "minLength": 1,
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "description": "Client-generated key (a UUID is ideal; it must be URL-safe to look it up) that makes the call safe to send again after a lost response. A repeat with the same key and body from the same caller returns the first call's answer (the same job and future) without running or billing it again, or a 409 while the first call still runs; the same key with another route, job, body or caller is a 422. Look a key up with GET /v1/training/operations/{idempotency_key}.",
              "title": "Idempotency-Key"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SaveWeightsForSamplerBody"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SaveWeightsAccepted"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          },
          "429": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The interactive training job already has the maximum number of queued operations."
          }
        },
        "summary": "Save an interactive training job's weights for sampling",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/stop": {
      "post": {
        "description": "Stop a running training job (an interactive job releases its adapter; its checkpoints are kept).",
        "operationId": "stop_training_job_v1_training_jobs__job_id__stop_post",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/StopJobRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StopJobResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StopJobResponse"
                }
              }
            },
            "description": "Cancellation in progress."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The cancel did not land. `error.code` is `training_job_already_finished` when the job completed or failed first, or `cancellation_unconfirmed` when it may be retried."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Stop Training Job",
        "tags": [
          "training-jobs"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/sync": {
      "post": {
        "description": "Sync training job status from the provider to the database.",
        "operationId": "sync_training_job_status_v1_training_jobs__job_id__sync_post",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingJobResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Sync Training Job Status",
        "tags": [
          "training-jobs"
        ]
      }
    },
    "/v1/training/jobs/{job_id}/terminate": {
      "post": {
        "description": "Terminate a training job; checkpoints are kept unless ``delete_checkpoints`` is true.",
        "operationId": "terminate_training_job_v1_training_jobs__job_id__terminate_post",
        "parameters": [
          {
            "in": "path",
            "name": "job_id",
            "required": true,
            "schema": {
              "title": "Job Id",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "anyOf": [
                  {
                    "$ref": "#/components/schemas/TerminateJobRequest"
                  },
                  {
                    "type": "null"
                  }
                ],
                "title": "Body"
              }
            }
          }
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TerminateJobResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "202": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TerminateJobResponse"
                }
              }
            },
            "description": "Termination in progress."
          },
          "409": {
            "content": {
              "application/json": {
                "schema": {
                  "description": "OpenAI-compatible error envelope returned by this endpoint.",
                  "properties": {
                    "error": {
                      "properties": {
                        "code": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Code"
                        },
                        "message": {
                          "title": "Message",
                          "type": "string"
                        },
                        "param": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ],
                          "title": "Param"
                        },
                        "type": {
                          "title": "Type",
                          "type": "string"
                        }
                      },
                      "required": [
                        "message",
                        "type",
                        "param",
                        "code"
                      ],
                      "title": "Error",
                      "type": "object"
                    }
                  },
                  "required": [
                    "error"
                  ],
                  "title": "OpenAIError",
                  "type": "object"
                }
              }
            },
            "description": "The cancel did not land. `error.code` is `training_job_already_finished` when the job completed or failed first, or `cancellation_unconfirmed` when it may be retried."
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Terminate Training Job",
        "tags": [
          "training-jobs"
        ]
      }
    },
    "/v1/training/operations/{idempotency_key}": {
      "get": {
        "description": "Whether a call to an interactive job route (create-model, forward, forward-backward, optim-step, save-weights, save-weights-for-sampler, load-weights, sample, stop), or a `POST /v1/training/jobs` create, sent with this `Idempotency-Key` was accepted, and the job and future it made. A native call still admitting, before its job is recorded, reads as `not_found` with a 200 because its owner and Experiment cannot yet be verified. `not_found` does not prove the call never arrived: retry the original request with the same key, never a fresh key.",
        "operationId": "get_operation_v1_training_operations__idempotency_key__get",
        "parameters": [
          {
            "in": "path",
            "name": "idempotency_key",
            "required": true,
            "schema": {
              "maxLength": 255,
              "minLength": 1,
              "title": "Idempotency Key",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrainingOperation"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Look up a training call by its Idempotency-Key",
        "tags": [
          "training"
        ]
      }
    },
    "/v1/training/usage": {
      "get": {
        "description": "The team's live interactive-job checkpoint storage per project, and its monthly price.",
        "operationId": "usage_v1_training_usage_get",
        "parameters": [
          {
            "in": "query",
            "name": "project_id",
            "required": false,
            "schema": {
              "anyOf": [
                {
                  "format": "uuid",
                  "type": "string"
                },
                {
                  "type": "null"
                }
              ],
              "title": "Project Id"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageUsageResponse"
                }
              }
            },
            "description": "Successful Response"
          },
          "422": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            },
            "description": "Validation Error"
          }
        },
        "summary": "Get interactive training checkpoint storage usage",
        "tags": [
          "training"
        ]
      }
    }
  },
  "security": [
    {
      "ApiKeyAuth": []
    },
    {
      "BearerAuth": []
    }
  ],
  "servers": [
    {
      "description": "Production",
      "url": "https://api.fastino.ai"
    }
  ]
}
