{"openapi":"3.1.0","info":{"title":"Nebius OpenAI-compatible inference API","version":"20260515-b6658ccfe"},"paths":{"/v1/completions":{"post":{"tags":["inference"],"summary":"Create completion","description":"Creates a model completion for the given input prompt.","operationId":"create_completion_v1_completions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"current project ID","title":"Ai Project Id"},"description":"current project ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletionRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompletionResponse"},"example":{"id":"cmpl-bd18c4194f544c189578cfcb273a2f74","choices":[{"finish_reason":"stop","index":0,"text":"Hello! It's nice to meet you. Is there something I can help you with, or would you like to chat?"}],"created":1717516032,"model":"meta-llama/Llama-3.3-70B-Instruct","object":"text_completion","usage":{"completion_tokens":26,"prompt_tokens":13,"total_tokens":39}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/chat/completions":{"post":{"tags":["inference"],"summary":"Create chat completion","description":"Creates a model response for the given chat conversation.","operationId":"create_chat_completion_v1_chat_completions_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"current project ID","title":"Ai Project Id"},"description":"current project ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatCompletionRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionResponse"},{"$ref":"#/components/schemas/ChatCompletionChunk"}],"title":"Response Create Chat Completion V1 Chat Completions Post"},"example":{"id":"cmpl-bd18c4194f544c189578cfcb273a2f74","choices":[{"finish_reason":"stop","index":0,"text":"Hello! It's nice to meet you. Is there something I can help you with, or would you like to chat?"}],"created":1717516032,"model":"meta-llama/Llama-3.3-70B-Instruct","object":"text_completion","usage":{"completion_tokens":26,"prompt_tokens":13,"total_tokens":39}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/embeddings":{"post":{"tags":["inference"],"summary":"Create embeddings","description":"Creates a model response for the given text.","operationId":"create_embeddings_v1_embeddings_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"current project ID","title":"Ai Project Id"},"description":"current project ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmbeddingResponse"},"example":{"object":"list","data":[{"object":"embedding","embedding":[0.0023064255,-0.009327292,-0.0028842222],"index":0}],"model":"BAAI/bge-en-icl","usage":{"prompt_tokens":8,"total_tokens":8}}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/rerank":{"post":{"tags":["inference"],"summary":"Rerank documents","description":"Reranks documents based on their relevance to a query.","operationId":"create_rerank_v1_rerank_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"current project ID","title":"Ai Project Id"},"description":"current project ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RerankRequest"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RerankResponse"},"example":{"id":"rerank-bbbxyuxyu643b6af","model":"Qwen/Qwen3-Reranker-8B","usage":{"prompt_tokens":65,"total_tokens":65},"results":[{"index":1,"document":{"text":"Belgrade"},"relevance_score":0.9456538558006287},{"index":2,"document":{"text":"Shrek's swamp"},"relevance_score":0.8282327651977539},{"index":0,"document":{"text":"Amsterdam"},"relevance_score":0.16313764452934265}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/responses":{"post":{"tags":["inference"],"summary":"Create a response","description":"Creates a model response for a given input","operationId":"create_response_v1_responses_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"current project ID","title":"Ai Project Id"},"description":"current project ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateResponseRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResponsesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/models":{"get":{"tags":["models"],"summary":"List models","description":"Lists the currently available models, and provides basic information about each one such as the owner and availability.","operationId":"show_available_models_v1_models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project ID to list models from.","title":"Ai Project Id"},"description":"Project ID to list models from."},{"name":"verbose","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Verbose"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListModelResponse"},"example":{"object":"list","data":[{"id":"meta-llama/Llama-3.3-70B-Instruct","created":1717511223,"object":"model","owned_by":"system"}]}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/models":{"post":{"tags":["models"],"summary":"Create a custom model","operationId":"v1_create_model_v0_models_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project ID to list models from.","title":"Ai Project Id"},"description":"Project ID to list models from."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelCreationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateModelStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["models"],"summary":"List of custom models","description":"Lists the custom models","operationId":"list_lora_models_v0_models_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project ID where list models","title":"Ai Project Id"},"description":"Project ID where list models"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/CustomModelInfoResponse"},"title":"Response List Lora Models V0 Models Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/models/{name}":{"get":{"tags":["models"],"summary":"Get a custom model by short name","description":"Get a custom model model by short name","operationId":"get_model_api_fn_v0_models__name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomModelInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["models"],"summary":"Delete a model by short name","operationId":"v1_delete_model_by_name_v0_models__name__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"name","in":"path","required":true,"schema":{"type":"string","title":"Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteModelStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/models/{vendor}/{full_name}":{"get":{"tags":["models"],"summary":"Get a custom model by full name","description":"Get a custom model model by full name","operationId":"get_model_by_vendor_and_fullname_v0_models__vendor___full_name__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"full_name","in":"path","required":true,"schema":{"type":"string","title":"Full Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomModelInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["models"],"summary":"Delete a model by full name","operationId":"v1_delete_model_by_vendor_and_fullname_v0_models__vendor___full_name__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"full_name","in":"path","required":true,"schema":{"type":"string","title":"Full Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteModelStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/files":{"post":{"tags":["files"],"summary":"Upload file","operationId":"upload_file_v1_files_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project ID to upload file to","title":"Ai Project Id"},"description":"Project ID to upload file to"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_file_v1_files_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIFile"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["files"],"summary":"List user files","operationId":"list_user_files_v1_files_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","default":10,"title":"Limit"}},{"name":"purpose","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/FilePurpose"},{"type":"null"}],"title":"Purpose"}},{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project ID to list files for","title":"Ai Project Id"},"description":"Project ID to list files for"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListFilesResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/models/upload":{"post":{"tags":["files"],"summary":"Upload custom model archive","operationId":"upload_model_file_v0_models_upload_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project ID to upload file to","title":"Ai Project Id"},"description":"Project ID to upload file to"}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_upload_model_file_v0_models_upload_post"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIFile"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/files/{file_id}":{"get":{"tags":["files"],"summary":"Retrieve file","operationId":"get_file_info_v1_files__file_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpenAIFile"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["files"],"summary":"Delete file","operationId":"delete_file_endpoint_v1_files__file_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDeleted"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/files/{file_id}/content":{"get":{"tags":["files"],"summary":"Retrieve file content","operationId":"get_file_content_endpoint_v1_files__file_id__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/files/{file_id}/link":{"get":{"tags":["files"],"summary":"Returns URL with link to download file content","operationId":"get_file_link_v1_files__file_id__link_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"file_id","in":"path","required":true,"schema":{"type":"string","title":"File Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileLink"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/images/generations":{"post":{"tags":["inference"],"summary":"Generate","operationId":"generate_v1_images_generations_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"current project ID","title":"Ai Project Id"},"description":"current project ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommonImageGenerationRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ImageGenerationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/fine_tuning/jobs":{"post":{"tags":["fine-tuning"],"summary":"Create a fine-tuning job","description":"Creates a job that fine-tunes a specified model based on a given dataset.","operationId":"create_fine_tuning_job_v1_fine_tuning_jobs_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project ID to list fine tuning jobs","title":"Ai Project Id"},"description":"Project ID to list fine tuning jobs"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FineTuningRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FineTuningJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["fine-tuning"],"summary":"List fine-tuning jobs","description":"Lists all fine-tuning jobs.","operationId":"list_fine_tuning_jobs_v1_fine_tuning_jobs_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}},{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project ID to list fine tuning jobs","title":"Ai Project Id"},"description":"Project ID to list fine tuning jobs"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FineTuningJobListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/fine_tuning/jobs/{job_id}":{"get":{"tags":["fine-tuning"],"summary":"Get fine-tuning job info","description":"Get info about a fine-tuning job.","operationId":"get_fine_tuning_job_v1_fine_tuning_jobs__job_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FineTuningJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/fine_tuning/jobs/{job_id}/cancel":{"post":{"tags":["fine-tuning"],"summary":"Cancel fine-tuning job","description":"Immediately cancel a fine-tuning job.","operationId":"cancel_fine_tuning_job_v1_fine_tuning_jobs__job_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FineTuningJob"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/fine_tuning/jobs/{job_id}/events":{"get":{"tags":["fine-tuning"],"summary":"List fine-tuning events","description":"Get status updates for a fine-tuning job.","operationId":"list_fine_tuning_events_v1_fine_tuning_jobs__job_id__events_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEventsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/fine_tuning/jobs/{job_id}/checkpoints":{"get":{"tags":["fine-tuning"],"summary":"List fine-tuning checkpoints","description":"Get training checkpoints for a fine-tuning job.","operationId":"list_fine_tuning_checkpoints_v1_fine_tuning_jobs__job_id__checkpoints_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListCheckpointsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/fine_tuning/jobs/{job_id}/checkpoints/{checkpoint_id}":{"get":{"tags":["fine-tuning"],"summary":"Get fine-tuning checkpoint","description":"Get details about a specific checkpoint from a fine-tuning job.","operationId":"get_fine_tuning_checkpoint_v1_fine_tuning_jobs__job_id__checkpoints__checkpoint_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}},{"name":"checkpoint_id","in":"path","required":true,"schema":{"type":"string","title":"Checkpoint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/openai__types__fine_tuning__jobs__fine_tuning_job_checkpoint__FineTuningJobCheckpoint"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/dedicated_endpoints/templates":{"get":{"tags":["dedicated-endpoints"],"summary":"List Dedicated Endpoint Templates","operationId":"list_dedicated_endpoint_templates_v0_dedicated_endpoints_templates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project ID to list templates","title":"Ai Project Id"},"description":"Project ID to list templates"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModelsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/dedicated_endpoints":{"head":{"tags":["dedicated-endpoints"],"summary":"Head Dedicated Endpoints","description":"This endpoint is used to check if the user has access to the dedicated endpoints feature.","operationId":"head_dedicated_endpoints_v0_dedicated_endpoints_head","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project ID","title":"Ai Project Id"},"description":"Project ID"}],"responses":{"204":{"description":"Successful Response"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["dedicated-endpoints"],"summary":"Create Dedicated Endpoint","operationId":"create_dedicated_endpoint_v0_dedicated_endpoints_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project ID to create endpoint","title":"Ai Project Id"},"description":"Project ID to create endpoint"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DedicatedEndpointCreateRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DedicatedEndpointCreationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["dedicated-endpoints"],"summary":"List Dedicated Endpoints","operationId":"list_dedicated_endpoints_v0_dedicated_endpoints_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Project ID to list endpoints","title":"Ai Project Id"},"description":"Project ID to list endpoints"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DedicatedEndpointsListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v0/dedicated_endpoints/{endpoint_id}":{"patch":{"tags":["dedicated-endpoints"],"summary":"Update Dedicated Endpoint","operationId":"update_dedicated_endpoint_v0_dedicated_endpoints__endpoint_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DedicatedEndpointUpdateRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DedicatedEndpoint"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["dedicated-endpoints"],"summary":"Delete Dedicated Endpoint","operationId":"delete_dedicated_endpoint_v0_dedicated_endpoints__endpoint_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"endpoint_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Endpoint Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/datasets":{"post":{"tags":["datasets"],"summary":"Create a dataset by uploading data","description":"Create a dataset","operationId":"create_dataset_v1_datasets_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CreateDatasetRequestUpload"},{"$ref":"#/components/schemas/CreateDatasetRequestS3"}],"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateDatasetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["datasets"],"summary":"Get a list of datasets in project","description":"List datasets","operationId":"list_datasets_v1_datasets_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}},{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id"}},{"name":"sort_by","in":"query","required":false,"schema":{"type":"string","enum":["created_at","name"],"default":"created_at","title":"Sort By"}},{"name":"sort_order","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"],"default":"desc","title":"Sort Order"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/datasets/{dataset_id}":{"get":{"tags":["datasets"],"summary":"Get dataset info","description":"Get dataset info","operationId":"get_dataset_v1_datasets__dataset_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["datasets"],"summary":"Patch dataset info","description":"Partially update dataset info","operationId":"patch_dataset_v1_datasets__dataset_id__patch","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","title":"Dataset Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateDatasetInfoRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["datasets"],"summary":"Delete a dataset","description":"Delete a dataset","operationId":"delete_dataset_v1_datasets__dataset_id__delete","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DatasetDeleteResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/datasets/{dataset_id}/query_templates":{"get":{"tags":["datasets"],"summary":"Get dataset query template","description":"Get dataset query template","operationId":"get_query_templates_v1_datasets__dataset_id__query_templates_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","title":"Dataset Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QueryTemplateResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/datasets/{dataset_id}/content":{"get":{"tags":["datasets"],"summary":"Read dataset content","description":"Get dataset content","operationId":"get_dataset_content_v1_datasets__dataset_id__content_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","title":"Dataset Id"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":1000,"minimum":1,"default":100,"title":"Limit"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"default":0,"title":"Offset"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/datasets/{dataset_id}/export":{"get":{"tags":["datasets"],"summary":"Read dataset content as csv or jsonl","description":"Export dataset content","operationId":"export_dataset_v1_datasets__dataset_id__export_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"dataset_id","in":"path","required":true,"schema":{"type":"string","title":"Dataset Id"}},{"name":"format","in":"query","required":true,"schema":{"type":"string","description":"Export format: csv or jsonl","title":"Format"},"description":"Export format: csv or jsonl"},{"name":"columns","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Comma-separated list of columns to export, optional","title":"Columns"},"description":"Comma-separated list of columns to export, optional"},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"description":"Limit the number of rows to export, optional","title":"Limit"},"description":"Limit the number of rows to export, optional"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/datasets/uploads":{"post":{"tags":["datasets"],"summary":"Create a new multipart upload for a dataset","description":"Create a new upload","operationId":"create_upload_v1_datasets_uploads_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/datasets/uploads/{upload_id}/parts":{"post":{"tags":["datasets"],"summary":"Upload a new part for a multipart upload","description":"Upload a new part","operationId":"upload_part_v1_datasets_uploads__upload_id__parts_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}},{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePartUploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"requestBody":{"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}}},"get":{"tags":["datasets"],"summary":"List parts of a multipart upload","description":"List upload parts","operationId":"list_upload_parts_v1_datasets_uploads__upload_id__parts_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}},{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadPartsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/datasets/uploads/{upload_id}/complete":{"post":{"tags":["datasets"],"summary":"Complete a multipart upload, create a new dataset","description":"Complete a multipart upload","operationId":"complete_upload_v1_datasets_uploads__upload_id__complete_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}},{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CompleteUploadRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/datasets/uploads/{upload_id}":{"get":{"tags":["datasets"],"summary":"Get information about a multipart upload","description":"Get upload information","operationId":"get_upload_v1_datasets_uploads__upload_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}},{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/datasets/uploads/{upload_id}/cancel":{"post":{"tags":["datasets"],"summary":"Cancel a multipart upload","description":"Cancel a multipart upload","operationId":"cancel_upload_v1_datasets_uploads__upload_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"upload_id","in":"path","required":true,"schema":{"type":"string","title":"Upload Id"}},{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/operations":{"post":{"tags":["datasets"],"summary":"Run operation","description":"Create an operation","operationId":"create_operation_v1_operations_post","security":[{"HTTPBearer":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/CreateYQLOperationRequest"},{"$ref":"#/components/schemas/CreateMaterializeHistoryOperationRequest"},{"$ref":"#/components/schemas/CreateBatchInferenceOperationRequest"},{"$ref":"#/components/schemas/CreateFineTuningOperationRequest"},{"$ref":"#/components/schemas/CreateFileToDatasetOperationRequest"},{"$ref":"#/components/schemas/CreateDatasetToFileOperationRequest"},{"$ref":"#/components/schemas/CreateMergeOperationRequest"}],"discriminator":{"propertyName":"type","mapping":{"yql":"#/components/schemas/CreateYQLOperationRequest","materialize_history":"#/components/schemas/CreateMaterializeHistoryOperationRequest","batch_inference":"#/components/schemas/CreateBatchInferenceOperationRequest","finetuning":"#/components/schemas/CreateFineTuningOperationRequest","file_to_dataset":"#/components/schemas/CreateFileToDatasetOperationRequest","dataset_to_file":"#/components/schemas/CreateDatasetToFileOperationRequest","merge":"#/components/schemas/CreateMergeOperationRequest"}},"title":"Request"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateOperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["datasets"],"summary":"Filter operations by attributes","description":"List operations","operationId":"list_operations_v1_operations_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":100,"title":"Limit"}},{"name":"cursor_time","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"ISO 8601 timestamp used as the pagination cursor","title":"Cursor Time"},"description":"ISO 8601 timestamp used as the pagination cursor"},{"name":"ai_project_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id"}},{"name":"type","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/OperationType"},{"type":"null"}],"title":"Type"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/operations/{operation_id}":{"get":{"tags":["datasets"],"summary":"Get operation info by id","description":"Get operation info","operationId":"get_operation_v1_operations__operation_id__get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"operation_id","in":"path","required":true,"schema":{"type":"string","title":"Operation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/operations/{operation_id}/cancel":{"post":{"tags":["datasets"],"summary":"Stop operation by id","description":"Cancel operation","operationId":"cancel_operation_v1_operations__operation_id__cancel_post","security":[{"HTTPBearer":[]}],"parameters":[{"name":"operation_id","in":"path","required":true,"schema":{"type":"string","title":"Operation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelOperationResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/operations/{operation_id}/results":{"get":{"tags":["datasets"],"summary":"Get operation results","description":"Get checkpoints for a fine-tuning operation or the output file id for a dataset-to-file operation.","operationId":"list_fine_tuning_checkpoints_v1_operations__operation_id__results_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"operation_id","in":"path","required":true,"schema":{"type":"string","title":"Operation Id"}},{"name":"limit","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Limit"}},{"name":"after","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"After"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/FineTuningOperationResultsResponse"},{"$ref":"#/components/schemas/DatasetToFileOperationResultsResponse"}],"title":"Response List Fine Tuning Checkpoints V1 Operations  Operation Id  Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/operations/{operation_id}/errors":{"get":{"tags":["datasets"],"summary":"Get operation errors","description":"Get errors for a given failed operation.","operationId":"get_operation_errors_v1_operations__operation_id__errors_get","security":[{"HTTPBearer":[]}],"parameters":[{"name":"operation_id","in":"path","required":true,"schema":{"type":"string","title":"Operation Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OperationErrorsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ActionClick":{"properties":{"button":{"type":"string","enum":["left","right","wheel","back","forward"],"title":"Button"},"type":{"type":"string","enum":["click"],"const":"click","title":"Type"},"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"}},"additionalProperties":true,"type":"object","required":["button","type","x","y"],"title":"ActionClick"},"ActionDoubleClick":{"properties":{"type":{"type":"string","enum":["double_click"],"const":"double_click","title":"Type"},"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"}},"additionalProperties":true,"type":"object","required":["type","x","y"],"title":"ActionDoubleClick"},"ActionDrag":{"properties":{"path":{"items":{"$ref":"#/components/schemas/ActionDragPath"},"type":"array","title":"Path"},"type":{"type":"string","enum":["drag"],"const":"drag","title":"Type"}},"additionalProperties":true,"type":"object","required":["path","type"],"title":"ActionDrag"},"ActionDragPath":{"properties":{"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"}},"additionalProperties":true,"type":"object","required":["x","y"],"title":"ActionDragPath"},"ActionFind":{"properties":{"pattern":{"type":"string","title":"Pattern"},"type":{"type":"string","enum":["find"],"const":"find","title":"Type"},"url":{"type":"string","title":"Url"}},"additionalProperties":true,"type":"object","required":["pattern","type","url"],"title":"ActionFind"},"ActionKeypress":{"properties":{"keys":{"items":{"type":"string"},"type":"array","title":"Keys"},"type":{"type":"string","enum":["keypress"],"const":"keypress","title":"Type"}},"additionalProperties":true,"type":"object","required":["keys","type"],"title":"ActionKeypress"},"ActionMove":{"properties":{"type":{"type":"string","enum":["move"],"const":"move","title":"Type"},"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"}},"additionalProperties":true,"type":"object","required":["type","x","y"],"title":"ActionMove"},"ActionOpenPage":{"properties":{"type":{"type":"string","enum":["open_page"],"const":"open_page","title":"Type"},"url":{"type":"string","title":"Url"}},"additionalProperties":true,"type":"object","required":["type","url"],"title":"ActionOpenPage"},"ActionScreenshot":{"properties":{"type":{"type":"string","enum":["screenshot"],"const":"screenshot","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ActionScreenshot"},"ActionScroll":{"properties":{"scroll_x":{"type":"integer","title":"Scroll X"},"scroll_y":{"type":"integer","title":"Scroll Y"},"type":{"type":"string","enum":["scroll"],"const":"scroll","title":"Type"},"x":{"type":"integer","title":"X"},"y":{"type":"integer","title":"Y"}},"additionalProperties":true,"type":"object","required":["scroll_x","scroll_y","type","x","y"],"title":"ActionScroll"},"ActionSearch":{"properties":{"query":{"type":"string","title":"Query"},"type":{"type":"string","enum":["search"],"const":"search","title":"Type"},"sources":{"anyOf":[{"items":{"$ref":"#/components/schemas/ActionSearchSource"},"type":"array"},{"type":"null"}],"title":"Sources"}},"additionalProperties":true,"type":"object","required":["query","type"],"title":"ActionSearch"},"ActionSearchSource":{"properties":{"type":{"type":"string","enum":["url"],"const":"url","title":"Type"},"url":{"type":"string","title":"Url"}},"additionalProperties":true,"type":"object","required":["type","url"],"title":"ActionSearchSource"},"ActionType":{"properties":{"text":{"type":"string","title":"Text"},"type":{"type":"string","enum":["type"],"const":"type","title":"Type"}},"additionalProperties":true,"type":"object","required":["text","type"],"title":"ActionType"},"ActionWait":{"properties":{"type":{"type":"string","enum":["wait"],"const":"wait","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ActionWait"},"AnnotationContainerFileCitation":{"properties":{"container_id":{"type":"string","title":"Container Id"},"end_index":{"type":"integer","title":"End Index"},"file_id":{"type":"string","title":"File Id"},"filename":{"type":"string","title":"Filename"},"start_index":{"type":"integer","title":"Start Index"},"type":{"type":"string","enum":["container_file_citation"],"const":"container_file_citation","title":"Type"}},"additionalProperties":true,"type":"object","required":["container_id","end_index","file_id","filename","start_index","type"],"title":"AnnotationContainerFileCitation"},"AnnotationFileCitation":{"properties":{"file_id":{"type":"string","title":"File Id"},"filename":{"type":"string","title":"Filename"},"index":{"type":"integer","title":"Index"},"type":{"type":"string","enum":["file_citation"],"const":"file_citation","title":"Type"}},"additionalProperties":true,"type":"object","required":["file_id","filename","index","type"],"title":"AnnotationFileCitation"},"AnnotationFilePath":{"properties":{"file_id":{"type":"string","title":"File Id"},"index":{"type":"integer","title":"Index"},"type":{"type":"string","enum":["file_path"],"const":"file_path","title":"Type"}},"additionalProperties":true,"type":"object","required":["file_id","index","type"],"title":"AnnotationFilePath"},"AnnotationURLCitation":{"properties":{"end_index":{"type":"integer","title":"End Index"},"start_index":{"type":"integer","title":"Start Index"},"title":{"type":"string","title":"Title"},"type":{"type":"string","enum":["url_citation"],"const":"url_citation","title":"Type"},"url":{"type":"string","title":"Url"}},"additionalProperties":true,"type":"object","required":["end_index","start_index","title","type","url"],"title":"AnnotationURLCitation"},"Architecture":{"properties":{"modality":{"type":"string","title":"Modality"},"tokenizer":{"type":"string","title":"Tokenizer"},"instruct_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instruct Type"}},"type":"object","required":["modality","tokenizer","instruct_type"],"title":"Architecture"},"BatchInferenceMapping":{"properties":{"type":{"type":"string","title":"Type","default":"text_messages"},"messages":{"anyOf":[{"$ref":"#/components/schemas/MappingRecordText"},{"$ref":"#/components/schemas/MappingRecordColumn"}],"title":"Messages"},"max_tokens":{"anyOf":[{"$ref":"#/components/schemas/MappingRecordText"},{"$ref":"#/components/schemas/MappingRecordColumn"},{"type":"null"}],"title":"Max Tokens"},"custom_id":{"anyOf":[{"$ref":"#/components/schemas/MappingRecordColumn"},{"type":"null"}]}},"type":"object","required":["messages"],"title":"BatchInferenceMapping"},"BatchInferenceParams":{"properties":{"model":{"type":"string","title":"Model","description":"ID of the model to use.","examples":["meta-llama/Meta-Llama-3.1-70B-Instruct"]},"completion_window":{"type":"string","title":"Completion Window","examples":["12h"]}},"type":"object","required":["model","completion_window"],"title":"BatchInferenceParams"},"Body_upload_file_v1_files_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"},"purpose":{"$ref":"#/components/schemas/FilePurpose"}},"type":"object","required":["file","purpose"],"title":"Body_upload_file_v1_files_post"},"Body_upload_model_file_v0_models_upload_post":{"properties":{"file":{"type":"string","format":"binary","title":"File"}},"type":"object","required":["file"],"title":"Body_upload_model_file_v0_models_upload_post"},"CancelOperationResponse":{"properties":{},"type":"object","title":"CancelOperationResponse"},"ChatCompletionChoice":{"properties":{"index":{"type":"integer","title":"Index","description":"The index of the choice in the list of choices."},"message":{"allOf":[{"$ref":"#/components/schemas/ChatCompletionResponseMessage"}],"description":"A chat completion message generated by the model."},"finish_reason":{"allOf":[{"$ref":"#/components/schemas/ChatCompletionFinishReason"}],"description":"The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence, `length` if the maximum number of tokens specified in the request was reached, `content_filter` if content was omitted due to a flag from our content filters."},"logprobs":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionLogprobs"},{"type":"null"}],"description":"Log probability information for the choice."}},"type":"object","required":["index","message","finish_reason","logprobs"],"title":"ChatCompletionChoice"},"ChatCompletionChunk":{"properties":{"id":{"type":"string","title":"Id","description":"A unique identifier for the chat completion. Each chunk has the same ID."},"choices":{"items":{"$ref":"#/components/schemas/ChatCompletionStreamChoice"},"type":"array","title":"Choices","description":"A list of chat completion choices. Can contain more than one elements if `n` is greater than 1. Can also be empty for the; last chunk if you set `stream_options: {\"include_usage\": true}`."},"created":{"type":"integer","title":"Created","description":"The Unix timestamp (in seconds) of when the chat completion was created. Each chunk has the same timestamp."},"model":{"type":"string","title":"Model","description":"The model to generate the completion."},"system_fingerprint":{"type":"string","title":"System Fingerprint","description":"This fingerprint represents the backend configuration that the model runs with.; Can be used in conjunction with the `seed` request parameter to understand when backend changes have been made that might impact determinism."},"object":{"allOf":[{"$ref":"#/components/schemas/ChatCompletionChunkObject"}],"description":"The object type, which is always `chat.completion.chunk`."},"usage":{"anyOf":[{"$ref":"#/components/schemas/Usage"},{"type":"null"}],"description":"An optional field that will only be present when you set `stream_options: {\"include_usage\": true}` in your request.; When present, it contains a null value except for the last chunk which contains the token usage statistics for the entire request."}},"type":"object","required":["id","choices","created","model","system_fingerprint","object","usage"],"title":"ChatCompletionChunk"},"ChatCompletionChunkObject":{"type":"string","enum":["chat.completion.chunk"],"const":"chat.completion.chunk","title":"ChatCompletionChunkObject"},"ChatCompletionContentPartImageParam":{"properties":{"image_url":{"$ref":"#/components/schemas/ImageURL"},"type":{"type":"string","enum":["image_url"],"const":"image_url","title":"Type","description":"The role of the author of this message."}},"type":"object","required":["image_url","type"],"title":"ChatCompletionContentPartImageParam"},"ChatCompletionContentPartTextParam":{"properties":{"text":{"type":"string","title":"Text","description":"The text content."},"type":{"type":"string","enum":["text"],"const":"text","title":"Type","description":"The type of the content part."}},"type":"object","required":["text","type"],"title":"ChatCompletionContentPartTextParam"},"ChatCompletionContentPartVideoParam":{"properties":{"video_url":{"$ref":"#/components/schemas/VideoURL"},"type":{"type":"string","enum":["video_url"],"const":"video_url","title":"Type","description":"The role of the author of this message."}},"type":"object","required":["video_url","type"],"title":"ChatCompletionContentPartVideoParam"},"ChatCompletionFinishReason":{"type":"string","enum":["stop","length","tool_calls","content_filter"],"title":"ChatCompletionFinishReason"},"ChatCompletionLogprobs":{"properties":{"content":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChatCompletionTokenLogprob"},"type":"array"},{"type":"null"}],"title":"Content","description":"A list of message content tokens with log probability information."}},"type":"object","required":["content"],"title":"ChatCompletionLogprobs"},"ChatCompletionMessage":{"properties":{"role":{"allOf":[{"$ref":"#/components/schemas/ChatMessageRole"}],"description":"The role of the author of this message."},"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionContentPartTextParam"},{"$ref":"#/components/schemas/ChatCompletionContentPartImageParam"},{"$ref":"#/components/schemas/ChatCompletionContentPartVideoParam"}]},"type":"array"},{"type":"null"}],"title":"Content","description":"The contents of the message."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"An optional name for the participant. Provides the model information to differentiate between participants of the same role"},"tool_calls":{"anyOf":[{"items":{"$ref":"#/components/schemas/ToolCall"},"type":"array"},{"type":"null"}],"title":"Tool Calls","description":"The tool calls generated by the model, such as function calls."},"tool_call_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tool Call Id","description":"Tool call that this message is responding to."},"reasoning_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Content","description":"The reasoning content of the message."}},"type":"object","required":["role"],"title":"ChatCompletionMessage"},"ChatCompletionNamedFunction":{"properties":{"name":{"type":"string","title":"Name","description":"Specifies the name of the function the model should call."}},"type":"object","required":["name"],"title":"ChatCompletionNamedFunction"},"ChatCompletionNamedToolChoice":{"properties":{"type":{"type":"string","enum":["function"],"const":"function","title":"Type","description":"Specifies that the tool choice is a function.","default":"function"},"function":{"allOf":[{"$ref":"#/components/schemas/ChatCompletionNamedFunction"}],"description":"Details the specific function to be called by the model."}},"type":"object","required":["function"],"title":"ChatCompletionNamedToolChoice"},"ChatCompletionObject":{"type":"string","enum":["chat.completion"],"const":"chat.completion","title":"ChatCompletionObject"},"ChatCompletionRequest":{"properties":{"model":{"type":"string","title":"Model","description":"ID of the model to use.","examples":["meta-llama/Meta-Llama-3.1-70B-Instruct"]},"store":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Store","description":"Whether or not to store the output of this chat completion request for use in our model distillation.","examples":[false]},"messages":{"items":{"$ref":"#/components/schemas/ChatCompletionMessage"},"type":"array","minItems":1,"title":"Messages","description":"A list of messages comprising the conversation so far. [Example Python code](https://cookbook.openai.com/examples/how_to_format_inputs_to_chatgpt_models).","examples":[[{"content":"Hello!","role":"user"}]]},"max_tokens":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Tokens","description":"The maximum number of tokens that can be generated in the completion.\n\nThe token count of your prompt plus `max_tokens` cannot exceed the model's context length. [Example Python code](https://cookbook.openai.com/examples/how_to_count_tokens_with_tiktoken) for counting tokens.","examples":[100]},"max_completion_tokens":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Max Completion Tokens","description":"An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens.","examples":[100]},"temperature":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Temperature","description":"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n\nWe generally recommend altering this or `top_p` but not both.","default":1},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P","description":"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or `temperature` but not both.","default":1},"tools":{"anyOf":[{"items":{"$ref":"#/components/schemas/ChatCompletionTool"},"type":"array"},{"type":"null"}],"title":"Tools"},"tool_choice":{"anyOf":[{"type":"string","enum":["none"],"const":"none"},{"type":"string","enum":["auto"],"const":"auto"},{"type":"string","enum":["required"],"const":"required"},{"$ref":"#/components/schemas/ChatCompletionNamedToolChoice"},{"type":"null"}],"title":"Tool Choice"},"reasoning_effort":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Reasoning Effort"},"n":{"anyOf":[{"type":"integer","maximum":128.0,"minimum":1.0},{"type":"null"}],"title":"N","description":"How many completions to generate for each prompt.\n\n**Note:** Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for `max_tokens` and `stop`.","default":1},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream","description":"If set, partial message deltas will be sent, like in ChatGPT. Tokens will be sent as data-only [server-sent events](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events#Event_stream_format) as they become available, with the stream terminated by a `data: [DONE]` message. [Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions).","default":false},"stream_options":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Stream Options","description":"If set to {\"include_usage\": True}, usage stats will be sent with the last chunk of data[Example Python code](https://cookbook.openai.com/examples/how_to_stream_completions)","examples":[null]},"stop":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stop","description":"Up to 4 sequences where the API will stop generating further tokens.","examples":[null]},"presence_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":-2.0},{"type":"null"}],"title":"Presence Penalty","description":"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far,increasing the model's likelihood to talk about new topics.\n\n[See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation/parameter-details)","default":0},"frequency_penalty":{"anyOf":[{"type":"number","maximum":2.0,"minimum":-2.0},{"type":"null"}],"title":"Frequency Penalty","description":"Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.\n\n[See more information about frequency and presence penalties.](https://platform.openai.com/docs/guides/text-generation/parameter-details)","default":0},"logit_bias":{"anyOf":[{"additionalProperties":{"type":"integer"},"type":"object"},{"type":"null"}],"title":"Logit Bias","description":"Modify the likelihood of specified tokens appearing in the completion.\n\nAccepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.\n\nAs an example, you can pass `{\"50256\": -100}` to prevent the token from being generated.","examples":[null]},"logprobs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Logprobs","description":"Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the `content` of `message`.","default":false},"top_logprobs":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Top Logprobs","description":"An non-negative integer specifying the number of most likely tokens to return at each token position, each with an associated log probability. `logprobs` must be set to `true` if this parameter is used.","examples":[null]},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User","description":"A unique identifier representing your end-user, which can help us to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices/end-user-ids).","examples":[null]},"response_format":{"anyOf":[{"$ref":"#/components/schemas/app__models__chat_completion__ResponseFormat"},{"type":"null"}],"description":"Similar to chat completion, this parameter specifies the format of output. Only {'type': 'json_object'} or {'type': 'text' } is supported.","examples":[null]},"extra_body":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Extra Body","description":"To provide extra parameters.","examples":[null]},"service_tier":{"allOf":[{"$ref":"#/components/schemas/ServiceTier"}],"description":"The service tier to use for the request.","default":"auto","examples":["auto","flex"]}},"additionalProperties":true,"type":"object","required":["model","messages"],"title":"ChatCompletionRequest"},"ChatCompletionResponse":{"properties":{"id":{"type":"string","title":"Id","description":"A unique identifier for the chat completion."},"object":{"allOf":[{"$ref":"#/components/schemas/ChatCompletionObject"}],"description":"The object type, which is always `chat.completion`."},"created":{"type":"integer","title":"Created","description":"The Unix timestamp (in seconds) of when the chat completion was created."},"model":{"type":"string","title":"Model","description":"The model used for the chat completion."},"choices":{"items":{"$ref":"#/components/schemas/ChatCompletionChoice"},"type":"array","title":"Choices","description":"A list of chat completion choices. Can be more than one if `n` is greater than 1."},"usage":{"allOf":[{"$ref":"#/components/schemas/Usage"}],"description":"Usage statistics for the completion request."},"service_tier":{"allOf":[{"$ref":"#/components/schemas/ServiceTier"}],"description":"The service tier used for the request."}},"type":"object","required":["id","object","created","model","choices","usage","service_tier"],"title":"ChatCompletionResponse"},"ChatCompletionResponseMessage":{"properties":{"role":{"allOf":[{"$ref":"#/components/schemas/ChatMessageRole"}],"description":"The role of the author of this message."},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content","description":"The contents of the message."},"tool_calls":{"anyOf":[{"items":{"$ref":"#/components/schemas/ToolCall"},"type":"array"},{"type":"null"}],"title":"Tool Calls","description":"The tool calls generated by the model, such as function calls."}},"type":"object","required":["role"],"title":"ChatCompletionResponseMessage"},"ChatCompletionStreamChoice":{"properties":{"index":{"type":"integer","title":"Index","description":"The index of the choice in the list of choices."},"delta":{"allOf":[{"$ref":"#/components/schemas/ChatCompletionStreamResponseDelta"}],"description":"A chat completion delta generated by streamed model responses."},"finish_reason":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionFinishReason"},{"type":"null"}],"description":"The reason the model stopped generating tokens. This will be `stop` if the model hit a natural stop point or a provided stop sequence, `length` if the maximum number of tokens specified in the request was reached, `content_filter` if content was omitted due to a flag from our content filters."},"logprobs":{"anyOf":[{"$ref":"#/components/schemas/ChatCompletionLogprobs"},{"type":"null"}],"description":"Log probability information for the choice."}},"type":"object","required":["index","delta","finish_reason","logprobs"],"title":"ChatCompletionStreamChoice"},"ChatCompletionStreamResponseDelta":{"properties":{"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content","description":"The contents of the chunk message."},"role":{"allOf":[{"$ref":"#/components/schemas/ChatMessageRole"}],"description":"The role of the author of this message."},"tool_calls":{"anyOf":[{"items":{"$ref":"#/components/schemas/ToolCall"},"type":"array"},{"type":"null"}],"title":"Tool Calls","description":"The tool calls generated by the model, such as function calls."},"reasoning_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reasoning Content","description":"The reasoning content of the message."}},"type":"object","required":["role"],"title":"ChatCompletionStreamResponseDelta"},"ChatCompletionTokenLogprob":{"properties":{"token":{"type":"string","title":"Token","description":"The token."},"logprob":{"type":"number","title":"Logprob","description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely."},"bytes":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Bytes","description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token."},"top_logprobs":{"items":{"$ref":"#/components/schemas/ChatCompletionTopLogprob"},"type":"array","title":"Top Logprobs","description":"List of the most likely tokens and their log probability, at this token position. In rare cases, there may be fewer than the number of requested `top_logprobs` returned."}},"type":"object","required":["token","logprob","bytes","top_logprobs"],"title":"ChatCompletionTokenLogprob"},"ChatCompletionTool":{"properties":{"type":{"type":"string","enum":["function"],"const":"function","title":"Type","description":"The type of the tool. Currently, only `function` is supported.","default":"function"},"function":{"allOf":[{"$ref":"#/components/schemas/FunctionObject"}],"description":"Defines a tool the model can call, specifically a function in this context."}},"type":"object","required":["function"],"title":"ChatCompletionTool"},"ChatCompletionTopLogprob":{"properties":{"token":{"type":"string","title":"Token","description":"The token."},"logprob":{"type":"number","title":"Logprob","description":"The log probability of this token, if it is within the top 20 most likely tokens. Otherwise, the value `-9999.0` is used to signify that the token is very unlikely."},"bytes":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Bytes","description":"A list of integers representing the UTF-8 bytes representation of the token. Useful in instances where characters are represented by multiple tokens and their byte representations must be combined to generate the correct text representation. Can be `null` if there is no bytes representation for the token."}},"type":"object","required":["token","logprob","bytes"],"title":"ChatCompletionTopLogprob"},"ChatMessageRole":{"type":"string","enum":["system","user","assistant","tool"],"title":"ChatMessageRole"},"CodeInterpreter":{"properties":{"container":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/CodeInterpreterContainerCodeInterpreterToolAuto"}],"title":"Container"},"type":{"type":"string","enum":["code_interpreter"],"const":"code_interpreter","title":"Type"}},"additionalProperties":true,"type":"object","required":["container","type"],"title":"CodeInterpreter"},"CodeInterpreterContainerCodeInterpreterToolAuto":{"properties":{"type":{"type":"string","enum":["auto"],"const":"auto","title":"Type"},"file_ids":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"File Ids"}},"additionalProperties":true,"type":"object","required":["type"],"title":"CodeInterpreterContainerCodeInterpreterToolAuto"},"ColumnSchema-Input":{"properties":{"name":{"type":"string","title":"Name"},"type":{"anyOf":[{"$ref":"#/components/schemas/SchemaPrimitive"},{"$ref":"#/components/schemas/SchemaOption-Input"}],"title":"Type"}},"type":"object","required":["name","type"],"title":"ColumnSchema"},"ColumnSchema-Output":{"properties":{"name":{"type":"string","title":"Name"},"type":{"anyOf":[{"$ref":"#/components/schemas/SchemaPrimitive"},{"$ref":"#/components/schemas/SchemaOption-Output"}],"title":"Type"}},"type":"object","required":["name","type"],"title":"ColumnSchema"},"CommonImageGenerationRequest":{"properties":{"model":{"type":"string","title":"Model","description":"ID of the model to use.","examples":["black-forest-labs/flux-schnell"]},"loras":{"anyOf":[{"items":{"$ref":"#/components/schemas/LoRA"},"type":"array","maxItems":10,"minItems":1},{"type":"null"}],"title":"Loras","description":"List of publicly accessible LoRAs compatible with the selected model","examples":[{"scale":1.0,"url":"https://civitai.com/api/download/models/244808?type=Model&format=SafeTensor"}]},"prompt":{"type":"string","maxLength":2000,"minLength":1,"title":"Prompt","description":"A text description of the desired image(s)."},"width":{"type":"integer","maximum":2048.0,"minimum":64.0,"title":"Width","description":"The width of the generated image(s) in pixels.","default":512},"height":{"type":"integer","maximum":2048.0,"minimum":64.0,"title":"Height","description":"The height of the generated image(s) in pixels.","default":512},"num_inference_steps":{"anyOf":[{"type":"integer","maximum":80.0,"minimum":1.0},{"type":"null"}],"title":"Num Inference Steps","description":"Number of denoising steps in the diffusion process. Higher values generally result in higher quality images but take longer to generate."},"seed":{"type":"integer","minimum":-1.0,"title":"Seed","description":"Random seed for image generation. Use -1 for a random seed.","default":-1},"guidance_scale":{"anyOf":[{"type":"number","maximum":100.0,"minimum":0.0},{"type":"null"}],"title":"Guidance Scale","description":"Guidance scale for the model. Higher values make the image adhere more closely to the prompt."},"negative_prompt":{"type":"string","maxLength":2000,"minLength":0,"title":"Negative Prompt","description":"A text description of the non-desired image(s).","default":""},"response_extension":{"allOf":[{"$ref":"#/components/schemas/ResponseExtension"}],"description":"The format of the output image(s).","default":"webp"},"response_format":{"allOf":[{"$ref":"#/components/schemas/app__repository__models__ResponseFormat"}],"description":"The way output image will be returned.","default":"url"}},"type":"object","required":["model","prompt"],"title":"CommonImageGenerationRequest"},"ComparisonFilter":{"properties":{"key":{"type":"string","title":"Key"},"type":{"type":"string","enum":["eq","ne","gt","gte","lt","lte"],"title":"Type"},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}],"title":"Value"}},"additionalProperties":true,"type":"object","required":["key","type","value"],"title":"ComparisonFilter"},"CompleteUploadRequest":{"properties":{"part_ids":{"items":{"type":"string"},"type":"array","title":"Part Ids"}},"type":"object","required":["part_ids"],"title":"CompleteUploadRequest"},"CompletionChoice":{"properties":{"index":{"type":"integer","title":"Index","description":"The index of the choice in the list of choices."},"text":{"type":"string","title":"Text","description":"A completion message generated by the model."},"finish_reason":{"allOf":[{"$ref":"#/components/schemas/CompletionFinishReason"}],"description":"The reason the model stopped generating tokens."}},"type":"object","required":["index","text","finish_reason"],"title":"CompletionChoice"},"CompletionFinishReason":{"type":"string","enum":["stop","length","content_filter"],"title":"CompletionFinishReason"},"CompletionRequest":{"properties":{"model":{"type":"string","title":"Model","description":"ID of the model to use.","examples":["meta-llama/Meta-Llama-3.1-70B-Instruct"]},"prompt":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"items":{"type":"integer"},"type":"array"}],"title":"Prompt","description":"The prompt(s) to generate completions for, encoded as a string, array of strings, array of tokens, or array of token arrays.","examples":["Say this is a test"]},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream","description":"Enable response streaming.","default":false},"stream_options":{"anyOf":[{"additionalProperties":{"type":"boolean"},"type":"object"},{"type":"null"}],"title":"Stream Options","description":"If set to {\"include_usage\": True}, usage stats will be sent with the last chunk of data","examples":[null]},"max_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tokens","description":"Max completion token count","examples":[100]},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature","description":"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.","default":1.0},"top_p":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Top P","description":"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.","default":1.0},"n":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"N","description":"How many completions to generate for each prompt.","default":1},"logprobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Logprobs","description":"Include the log probabilities on the `logprobs` most likely tokens, as well the chosen tokens. So for example, if `logprobs` is 5, the API will return a list of the 5 most likely tokens. The API will always return the `logprob` of the sampled token, so there may be up to `logprobs+1` elements in the response.","examples":[null]},"echo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Echo","description":"Echo back the prompt in addition to the completion.","default":false},"stop":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stop","description":"Up to 4 sequences where the API will stop generating further tokens."},"presence_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Presence Penalty","description":"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.","default":0.0},"frequency_penalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Frequency Penalty","description":"Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.","default":0.0},"logit_bias":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Logit Bias","description":"Modify the likelihood of specified tokens appearing in the completion. Accepts a json object that maps tokens (specified by their token ID in the tokenizer) to an associated bias value from -100 to 100. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token."},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User","description":"A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse."},"extra_body":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Extra Body","description":"To provide extra parameters.","examples":[null]},"service_tier":{"allOf":[{"$ref":"#/components/schemas/ServiceTier"}],"description":"The service tier to use for the request.","default":"auto","examples":["auto","flex"]}},"additionalProperties":true,"type":"object","required":["model","prompt"],"title":"CompletionRequest"},"CompletionResponse":{"properties":{"id":{"type":"string","title":"Id","description":"A unique identifier for the chat completion."},"object":{"type":"string","title":"Object","description":"The object type, which is always `text_completion`."},"created":{"type":"integer","title":"Created","description":"The Unix timestamp of when the completion was created."},"model":{"type":"string","title":"Model","description":"The model used for the chat completion."},"choices":{"items":{"$ref":"#/components/schemas/CompletionChoice"},"type":"array","title":"Choices","description":"A list of completion choices."},"usage":{"allOf":[{"$ref":"#/components/schemas/Usage"}],"description":"Usage statistics for the completion request."},"service_tier":{"allOf":[{"$ref":"#/components/schemas/ServiceTier"}],"description":"The service tier used for the request."}},"type":"object","required":["id","object","created","model","choices","usage","service_tier"],"title":"CompletionResponse"},"CompoundFilter":{"properties":{"filters":{"items":{"anyOf":[{"$ref":"#/components/schemas/ComparisonFilter"},{}]},"type":"array","title":"Filters"},"type":{"type":"string","enum":["and","or"],"title":"Type"}},"additionalProperties":true,"type":"object","required":["filters","type"],"title":"CompoundFilter"},"ComputerCallOutput":{"properties":{"call_id":{"type":"string","title":"Call Id"},"output":{"$ref":"#/components/schemas/ResponseComputerToolCallOutputScreenshot"},"type":{"type":"string","enum":["computer_call_output"],"const":"computer_call_output","title":"Type"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"acknowledged_safety_checks":{"anyOf":[{"items":{"$ref":"#/components/schemas/ComputerCallOutputAcknowledgedSafetyCheck"},"type":"array"},{"type":"null"}],"title":"Acknowledged Safety Checks"},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"}},"additionalProperties":true,"type":"object","required":["call_id","output","type"],"title":"ComputerCallOutput"},"ComputerCallOutputAcknowledgedSafetyCheck":{"properties":{"id":{"type":"string","title":"Id"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message"}},"additionalProperties":true,"type":"object","required":["id"],"title":"ComputerCallOutputAcknowledgedSafetyCheck"},"ComputerTool":{"properties":{"display_height":{"type":"integer","title":"Display Height"},"display_width":{"type":"integer","title":"Display Width"},"environment":{"type":"string","enum":["windows","mac","linux","ubuntu","browser"],"title":"Environment"},"type":{"type":"string","enum":["computer_use_preview"],"const":"computer_use_preview","title":"Type"}},"additionalProperties":true,"type":"object","required":["display_height","display_width","environment","type"],"title":"ComputerTool"},"Content":{"properties":{"text":{"type":"string","title":"Text"},"type":{"type":"string","enum":["reasoning_text"],"const":"reasoning_text","title":"Type"}},"additionalProperties":true,"type":"object","required":["text","type"],"title":"Content"},"CreateBatchInferenceOperationRequest":{"properties":{"type":{"type":"string","enum":["batch_inference"],"const":"batch_inference","title":"Type","default":"batch_inference"},"params":{"allOf":[{"$ref":"#/components/schemas/BatchInferenceParams"}],"description":"Batch inference parameters.","examples":[{"completion_window":"12h","model":"meta-llama/Meta-Llama-3.1-70B-Instruct"}]},"src":{"items":{"$ref":"#/components/schemas/OperationSrcDataset-Input"},"type":"array","title":"Src","description":"List of source datasets for the operation.","examples":[{"id":"example_dataset","version":"0ed2d94b38fb40b9b61f6a01b43d53de"}]},"dst":{"items":{"$ref":"#/components/schemas/OperationDstDataset"},"type":"array","title":"Dst","description":"Optional destination datasets. If not provided, a temporary dataset will be created.","examples":[{"id":"example_dataset","version":"0ed2d94b38fb40b9b61f6a01b43d53de"}]},"ai_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id","description":"AI Studio project ID to associate with the dataset.","examples":["example_project"]}},"type":"object","required":["params","src"],"title":"CreateBatchInferenceOperationRequest"},"CreateDatasetRequestS3":{"properties":{"name":{"type":"string","title":"Name","description":"ID of the dataset.","examples":["example_dataset"]},"folder":{"type":"string","title":"Folder","description":"Folder path where the dataset is stored.","examples":["/some/folder"]},"s3_service_url":{"type":"string","title":"S3 Service Url","description":"S3 URL to import dataset from.","examples":["https://storage.eu-north1.nebius.cloud:443"]},"s3_region":{"type":"string","title":"S3 Region","description":"Region of the S3 bucket.","examples":["eu-north-1"]},"s3_uri":{"type":"string","title":"S3 Uri","description":"S3 URI to import dataset from.","examples":["s3://my-bucket/path/to/dataset.csv"]},"s3_key_id":{"type":"string","title":"S3 Key Id","description":"Secret key id for the S3 bucket.","examples":["AKIAIOSFODNN7EXAMPLE"]},"s3_secret_key":{"type":"string","title":"S3 Secret Key","description":"Secret key for the S3 bucket.","examples":["some_key"]},"ai_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id","description":"AI Studio project ID to associate with the dataset.","examples":["example_project"]}},"type":"object","required":["name","folder","s3_service_url","s3_region","s3_uri","s3_key_id","s3_secret_key"],"title":"CreateDatasetRequestS3"},"CreateDatasetRequestUpload":{"properties":{"name":{"type":"string","title":"Name","description":"ID of the dataset.","examples":["example_dataset"]},"schema":{"items":{"$ref":"#/components/schemas/ColumnSchema-Input"},"type":"array","title":"Schema","description":"Dataset schema definition.","examples":[{"name":"text","type":{"name":"string"}},{"name":"text_1","type":{"item":{"name":"string"},"name":"option"}}]},"folder":{"type":"string","title":"Folder","description":"Folder path where the dataset is stored.","examples":["/some/folder"]},"rows":{"items":{"type":"object"},"type":"array","title":"Rows","description":"List of rows to be included in the dataset.","examples":[{"text":"This is the first row."}]},"ai_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id","description":"AI Studio project ID to associate with the dataset.","examples":["example_project"]}},"type":"object","required":["name","schema","folder","rows"],"title":"CreateDatasetRequestUpload"},"CreateDatasetResponse":{"properties":{"id":{"type":"string","title":"Id","description":"The object identifier, which can be referenced in the API endpoints.","examples":["4d89c87498354518b92fa02fc0ad8720"]},"name":{"type":"string","title":"Name","description":"ID of the dataset.","examples":["example_dataset"]},"status":{"allOf":[{"$ref":"#/components/schemas/DatasetStatus"}],"description":"Current status of the dataset.","examples":["READY","FAILED","PENDING"]},"schema":{"items":{"$ref":"#/components/schemas/ColumnSchema-Output"},"type":"array","title":"Schema","description":"Dataset schema definition.","examples":[{"name":"text","type":{"name":"string"}},{"name":"text_1","type":{"item":{"name":"string"},"name":"option"}}]},"metadata":{"additionalProperties":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}]},"type":"object","title":"Metadata","description":"Additional metadata associated with the dataset.","examples":[{}]},"current_version_origin":{"anyOf":[{"$ref":"#/components/schemas/DatasetOriginResponse"},{"type":"null"}],"description":"Origin information for the current dataset version. This object is extensible for source-specific fields.","examples":[{"type":"s3"}]},"folder":{"type":"string","title":"Folder","description":"Folder path where the dataset is stored.","examples":["/some/folder"]},"current_version":{"type":"string","title":"Current Version","description":"Current version of the dataset.","examples":["0ed2d94b38fb40b9b61f6a"]},"created_at":{"type":"integer","title":"Created At","description":"Unix timestamp when the dataset was created.","examples":[1760109124]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Error message if the dataset is in an error state."},"ai_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id","description":"AI Studio project ID to associate with the dataset.","examples":["example_project"]}},"type":"object","required":["id","name","status","schema","metadata","folder","current_version","created_at","error"],"title":"CreateDatasetResponse"},"CreateDatasetToFileOperationRequest":{"properties":{"type":{"type":"string","enum":["dataset_to_file"],"const":"dataset_to_file","title":"Type","default":"dataset_to_file"},"params":{"allOf":[{"$ref":"#/components/schemas/DatasetToFileParams"}],"description":"Dataset-to-file conversion parameters","examples":[{"model":"openai/gpt-oss-120b","purpose":"inference"},{"purpose":"fine_tuning"}]},"src":{"items":{"$ref":"#/components/schemas/OperationSrcDatasetToFile-Input"},"type":"array","title":"Src","description":"List of source datasets for the dataset-to-file operation.","examples":[{"dataset":{"id":"example_dataset","version":"0ed2d94b38fb40b9b61f6a01b43d53de"},"mapping":{"text":{"name":"text","type":"column"},"type":"text"}}]},"dst":{"items":{"$ref":"#/components/schemas/OperationDstDataset"},"type":"array","title":"Dst","description":"Optional destination datasets. If not provided, a temporary dataset will be created.","examples":[{"id":"example_dataset","version":"0ed2d94b38fb40b9b61f6a01b43d53de"}]},"ai_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id","description":"AI Studio project ID to associate with the dataset.","examples":["example_project"]}},"type":"object","required":["params","src"],"title":"CreateDatasetToFileOperationRequest"},"CreateFileToDatasetOperationRequest":{"properties":{"type":{"type":"string","enum":["file_to_dataset"],"const":"file_to_dataset","title":"Type","default":"file_to_dataset"},"params":{"allOf":[{"$ref":"#/components/schemas/FileToDatasetParams"}],"description":"File-to-dataset conversion parameters.","examples":[{"file_id":"file-01954e35-a0a1-72fb-b84d-caf95f8f3a0f"}]},"ai_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id","description":"AI Studio project ID to associate with the dataset.","examples":["example_project"]}},"type":"object","required":["params"],"title":"CreateFileToDatasetOperationRequest"},"CreateFineTuningOperationRequest":{"properties":{"type":{"type":"string","enum":["finetuning"],"const":"finetuning","title":"Type","default":"finetuning"},"params":{"allOf":[{"$ref":"#/components/schemas/FineTuningParams-Input"}],"description":"Fine-tuning parameters.","examples":[{"method":{"supervised":{"hyperparameters":{"batch_size":8,"context_length":8192,"learning_rate":1e-05,"lora":false,"lora_alpha":8,"lora_dropout":0.0,"lora_r":8,"max_grad_norm":1.0,"n_epochs":3,"packing":true,"warmup_ratio":0.0,"weight_decay":0.0}},"type":"supervised"},"model_name":"meta-llama/Llama-3.1-8B"}]},"src":{"items":{"anyOf":[{"$ref":"#/components/schemas/OperationSrcTrainDataset-Input"},{"$ref":"#/components/schemas/OperationSrcValidationDataset-Input"}]},"type":"array","title":"Src","description":"List of train and validation datasets for the finetuning operation.","examples":[{"id":"example_dataset","mapping":{"text":{"name":"text","type":"column"},"type":"text"},"type":"train","version":"0ed2d94b38fb40b9b61f6a01b43d53de"},{"id":"example_dataset","mapping":{"messages":{"name":"messages","type":"column"},"type":"messages"},"type":"validation","version":"0ed2d94b38fb40b9b61f6a01b43d53de"}]},"ai_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id","description":"AI Studio project ID to associate with the dataset.","examples":["example_project"]}},"type":"object","required":["params","src"],"title":"CreateFineTuningOperationRequest"},"CreateMaterializeHistoryOperationRequest":{"properties":{"type":{"type":"string","enum":["materialize_history"],"const":"materialize_history","title":"Type","default":"materialize_history"},"params":{"allOf":[{"$ref":"#/components/schemas/MaterializeHistoryParams"}],"description":"History materialization parameters.","examples":[{"dataset_name":"chat_history_january_2025","end_datetime":"2025-01-31T23:59:00Z","model_name":"meta-llama/Llama-3.3-70B-Instruct","start_datetime":"2025-01-01T00:00:00Z"}]},"ai_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id","description":"AI Studio project ID to associate with the dataset.","examples":["example_project"]}},"type":"object","required":["params"],"title":"CreateMaterializeHistoryOperationRequest"},"CreateMergeOperationRequest":{"properties":{"type":{"type":"string","enum":["merge"],"const":"merge","title":"Type","default":"merge"},"params":{"allOf":[{"$ref":"#/components/schemas/MergeParams"}],"description":"Merge operation parameters.","examples":[{"dataset_name":"merged_dataset"}]},"src":{"items":{"$ref":"#/components/schemas/OperationSrcDataset-Input"},"type":"array","title":"Src","description":"List of source datasets for the operation.","examples":[{"id":"example_dataset","version":"0ed2d94b38fb40b9b61f6a01b43d53de"}]},"ai_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id","description":"AI Studio project ID to associate with the dataset.","examples":["example_project"]}},"type":"object","required":["src"],"title":"CreateMergeOperationRequest"},"CreateModelStatusResponse":{"properties":{"name":{"type":"string","title":"Name","description":"The new model name.","examples":["meta-llama/Meta-Llama-3.1-8B-Instruct-LoRa:my-custom-model-udpd"]},"base_model":{"type":"string","title":"Base Model","description":"The base model identifier the new model belongs to","examples":["meta-llama/Meta-Llama-3.1-8B-Instruct-fast"]},"source":{"type":"string","title":"Source","description":"Checkpoint id from Fine-Tunes API, file id from Files API, or HuggingFace repo url","examples":["ftjob-1234567890:ftckpt_1234567890","file-1234567890","huggingface.co/sofrony/Llama-3.1-8B-Instruct-sofrony"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"integer","title":"Created At"},"status":{"allOf":[{"$ref":"#/components/schemas/ModelStatus"}],"description":"The status of the model","examples":["validating"]}},"type":"object","required":["name","base_model","source","created_at","status"],"title":"CreateModelStatusResponse"},"CreateOperationResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Operation id","examples":["3a3fd2317bbe4b3bb9842bc1b5275eb9"]},"type":{"allOf":[{"$ref":"#/components/schemas/OperationType"}],"description":"Type of the operation.","examples":["yql","materialize_history","batch_inference","finetuning","file_to_dataset","dataset_to_file","merge"]},"params":{"anyOf":[{"$ref":"#/components/schemas/YQLParams"},{"$ref":"#/components/schemas/MaterializeHistoryParams"},{"$ref":"#/components/schemas/BatchInferenceParams"},{"$ref":"#/components/schemas/FineTuningParams-Output"},{"$ref":"#/components/schemas/FileToDatasetParams"},{"$ref":"#/components/schemas/DatasetToFileParams"},{"$ref":"#/components/schemas/MergeParams"}],"title":"Params","description":"Parameters specific to the operation type.","examples":[{"query":"SELECT * FROM {src_0} WHERE condition"}]},"src":{"items":{"anyOf":[{"$ref":"#/components/schemas/OperationSrcDataset-Output"},{"$ref":"#/components/schemas/OperationSrcTrainDataset-Output"},{"$ref":"#/components/schemas/OperationSrcValidationDataset-Output"},{"$ref":"#/components/schemas/OperationSrcDatasetToFile-Output"}]},"type":"array","title":"Src","description":"List of source datasets for the operation.","examples":[{"id":"example_dataset","version":"0ed2d94b38fb40b9b61f6a01b43d53de"}]},"dst":{"items":{"$ref":"#/components/schemas/OperationDstDataset"},"type":"array","title":"Dst","description":"List of destination datasets for the operation.","examples":[{"id":"example_dataset","version":"0ed2d94b38fb40b9b61f6a01b43d53de"}]},"status":{"allOf":[{"$ref":"#/components/schemas/OperationStatus"}],"description":"Current status of the operation.","examples":["queued","running","succeeded","failed","cancelled","unknown"]},"created_at":{"type":"integer","title":"Created At","description":"The Unix timestamp (in seconds) for when the operation was created.","examples":[1614807352]},"in_progress_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"In Progress At","description":"The Unix timestamp (in seconds) for when the operation started processing.","examples":[1614807352]},"finished_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Finished At","description":"The Unix timestamp (in seconds) for when the operation was completed.","examples":[1614807352]},"ai_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id","description":"AI Studio project ID to associate with the dataset.","examples":["example_project"]}},"type":"object","required":["id","type","params","src","dst","status","created_at"],"title":"CreateOperationResponse"},"CreatePartUploadResponse":{"properties":{"upload_part_info":{"allOf":[{"$ref":"#/components/schemas/UploadPartInfoResponse"}],"description":"Information about the uploaded part"}},"type":"object","required":["upload_part_info"],"title":"CreatePartUploadResponse"},"CreateResponseRequest":{"properties":{"background":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Background","description":"Whether to run the model response in the background.","examples":[false]},"include":{"anyOf":[{"items":{"type":"string","enum":["code_interpreter_call.outputs","computer_call_output.output.image_url","file_search_call.results","message.input_image.image_url","message.output_text.logprobs","reasoning.encrypted_content"]},"type":"array"},{"type":"null"}],"title":"Include","description":"Specify additional output data to include in the model response."},"input":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/EasyInputMessage"},{"$ref":"#/components/schemas/Message"},{"$ref":"#/components/schemas/ResponseOutputMessage-Input"},{"$ref":"#/components/schemas/ResponseFileSearchToolCall"},{"$ref":"#/components/schemas/ResponseComputerToolCall-Input"},{"$ref":"#/components/schemas/ComputerCallOutput"},{"$ref":"#/components/schemas/ResponseFunctionWebSearch-Input"},{"$ref":"#/components/schemas/ResponseFunctionToolCall"},{"$ref":"#/components/schemas/FunctionCallOutput"},{"$ref":"#/components/schemas/ResponseReasoningItem"},{"$ref":"#/components/schemas/ImageGenerationCall"},{"$ref":"#/components/schemas/ResponseCodeInterpreterToolCall"},{"$ref":"#/components/schemas/LocalShellCall"},{"$ref":"#/components/schemas/LocalShellCallOutput"},{"$ref":"#/components/schemas/McpListTools"},{"$ref":"#/components/schemas/McpApprovalRequest"},{"$ref":"#/components/schemas/McpApprovalResponse"},{"$ref":"#/components/schemas/McpCall"},{"$ref":"#/components/schemas/ResponseCustomToolCallOutput"},{"$ref":"#/components/schemas/ResponseCustomToolCall"},{"$ref":"#/components/schemas/ItemReference"},{"$ref":"#/components/schemas/ImageGenerationCall"},{"$ref":"#/components/schemas/LocalShellCall"},{"$ref":"#/components/schemas/McpCall"},{"$ref":"#/components/schemas/McpListTools"},{"$ref":"#/components/schemas/McpApprovalRequest"}]},"type":"array"}],"title":"Input","description":"Text, image, or file inputs to the model, used to generate a response."},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions","description":"A system (or developer) message inserted into the model's context."},"max_output_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Output Tokens","description":"An upper bound for the number of tokens that can be generated for a response, including visible output tokens and reasoning tokens."},"max_tool_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tool Calls","description":"The maximum number of total calls to built-in tools that can be processed in a response. This maximum number applies across all built-in tool calls, not per individual tool. Any further attempts to call a tool by the model will be ignored."},"metadata":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Metadata","description":"Set of 16 key-value pairs that can be attached to an object."},"model":{"type":"string","title":"Model","description":"The model used for the chat completion."},"parallel_tool_calls":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Parallel Tool Calls","description":"Whether to allow the model to run tool calls in parallel."},"previous_response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Response Id","description":"The unique ID of the previous response to the model."},"prompt":{"anyOf":[{"$ref":"#/components/schemas/ResponsePrompt"},{"type":"null"}],"description":"Reference to a prompt template and its variables."},"reasoning":{"anyOf":[{"$ref":"#/components/schemas/Reasoning"},{"type":"null"}],"description":"Configuration options for reasoning models."},"service_tier":{"allOf":[{"$ref":"#/components/schemas/ServiceTier"}],"description":"The service tier to use for the request.","default":"auto","examples":["auto","flex"]},"store":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Store","description":"Whether to store the generated model response for later retrieval via API."},"stream":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Stream","description":"If set to true, the model response data will be streamed to the client as it is generated using server-sent events."},"temperature":{"anyOf":[{"type":"number","maximum":2.0,"minimum":0.0},{"type":"null"}],"title":"Temperature","description":"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.\n\nWe generally recommend altering this or `top_p` but not both.","default":1},"text":{"anyOf":[{"$ref":"#/components/schemas/ResponseTextConfig"},{"type":"null"}],"description":"Configuration options for a text response from the model."},"tool_choice":{"anyOf":[{"type":"string","enum":["none","auto","required"]},{"$ref":"#/components/schemas/ToolChoiceAllowed"},{"$ref":"#/components/schemas/ToolChoiceTypes"},{"$ref":"#/components/schemas/ToolChoiceFunction"},{"$ref":"#/components/schemas/ToolChoiceMcp"},{"$ref":"#/components/schemas/ToolChoiceCustom"}],"title":"Tool Choice","description":"How the model should select which tool (or tools) to use when generating a response.","default":"auto"},"tools":{"items":{"anyOf":[{"$ref":"#/components/schemas/FunctionTool"},{"$ref":"#/components/schemas/FileSearchTool-Input"},{"$ref":"#/components/schemas/ComputerTool"},{"$ref":"#/components/schemas/WebSearchTool"},{"$ref":"#/components/schemas/Mcp-Input"},{"$ref":"#/components/schemas/CodeInterpreter"},{"$ref":"#/components/schemas/ImageGeneration"},{"$ref":"#/components/schemas/LocalShell"},{"$ref":"#/components/schemas/CustomTool"},{"$ref":"#/components/schemas/WebSearchPreviewTool"}]},"type":"array","title":"Tools","description":"An array of tools the model may call while generating a response."},"top_logprobs":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Top Logprobs","description":"A non-negative integer specifying the number of most likely tokens to return at each token position, each with an associated log probability. `logprobs` must be set to `true` if this parameter is used."},"top_p":{"anyOf":[{"type":"number","maximum":1.0,"minimum":0.0},{"type":"null"}],"title":"Top P","description":"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered.\n\nWe generally recommend altering this or `temperature` but not both."},"truncation":{"type":"string","enum":["auto","disabled"],"title":"Truncation","description":"The truncation strategy to use for the model response.","default":"disabled"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User","description":"A unique identifier representing your end-user, which can help us to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices/end-user-ids)."},"prompt_cache_key":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Prompt Cache Key","description":"Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the user field."}},"additionalProperties":true,"type":"object","required":["input","model"],"title":"CreateResponseRequest"},"CreateUploadRequest":{"properties":{"name":{"type":"string","title":"Name","description":"ID of the dataset.","examples":["example_dataset"]},"schema":{"items":{"$ref":"#/components/schemas/ColumnSchema-Input"},"type":"array","title":"Schema","description":"Dataset schema definition.","examples":[{"name":"text","type":{"name":"string"}},{"name":"text_1","type":{"item":{"name":"string"},"name":"option"}}]},"folder":{"type":"string","title":"Folder","description":"Folder path where the dataset is stored.","examples":["/some/folder"]}},"type":"object","required":["name","schema","folder"],"title":"CreateUploadRequest"},"CreateYQLOperationRequest":{"properties":{"type":{"type":"string","enum":["yql"],"const":"yql","title":"Type","default":"yql"},"params":{"allOf":[{"$ref":"#/components/schemas/YQLParams"}],"description":"YQL query parameters.","examples":[{"query":"SELECT * FROM {src_0} WHERE condition"}]},"src":{"items":{"$ref":"#/components/schemas/OperationSrcDataset-Input"},"type":"array","title":"Src","description":"List of source datasets for the operation.","examples":[{"id":"example_dataset","version":"0ed2d94b38fb40b9b61f6a01b43d53de"}]},"dst":{"items":{"$ref":"#/components/schemas/OperationDstDataset"},"type":"array","title":"Dst","description":"Optional destination datasets. If not provided, a temporary dataset will be created.","examples":[{"id":"example_dataset","version":"0ed2d94b38fb40b9b61f6a01b43d53de"}]},"ai_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id","description":"AI Studio project ID to associate with the dataset.","examples":["example_project"]}},"type":"object","required":["params","src"],"title":"CreateYQLOperationRequest"},"CustomModelInfoResponse":{"properties":{"type":{"type":"string","enum":["text2text"],"const":"text2text","title":"Type"},"name":{"type":"string","title":"Name"},"created_at":{"anyOf":[{"type":"string"},{"type":"integer"},{"type":"null"}],"title":"Created At"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"deprecated":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Deprecated"},"status":{"$ref":"#/components/schemas/ModelStatus"},"logo_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Logo Url"},"huggingface_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Huggingface Url"},"flavors":{"items":{"$ref":"#/components/schemas/VllmModelFlavor"},"type":"array","title":"Flavors"},"fine_tune":{"anyOf":[{"$ref":"#/components/schemas/ModelFineTuneSettings"},{"type":"null"}]},"post_train":{"anyOf":[{"items":{"$ref":"#/components/schemas/PostTrainEntry"},"type":"array"},{"type":"null"}],"title":"Post Train"},"vendor":{"type":"string","title":"Vendor"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"use_cases":{"items":{"type":"string"},"type":"array","title":"Use Cases"},"context_window_k":{"type":"integer","title":"Context Window K"},"size_b":{"type":"number","title":"Size B"},"quality":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Quality"},"policy_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Policy Url"},"license":{"anyOf":[{"$ref":"#/components/schemas/ModelLicense"},{"type":"null"}]},"status_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Reason"},"checkpoint_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Checkpoint Id"},"job_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Job Id"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","required":["type","name","status","flavors","vendor","tags","use_cases","context_window_k","size_b"],"title":"CustomModelInfoResponse"},"CustomTool":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","enum":["custom"],"const":"custom","title":"Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"format":{"anyOf":[{"$ref":"#/components/schemas/Text"},{"$ref":"#/components/schemas/Grammar"},{"type":"null"}],"title":"Format"}},"additionalProperties":true,"type":"object","required":["name","type"],"title":"CustomTool"},"DatasetDeleteResponse":{"properties":{},"type":"object","title":"DatasetDeleteResponse"},"DatasetOriginResponse":{"properties":{"type":{"allOf":[{"$ref":"#/components/schemas/DatasetOriginType"}],"description":"How the current dataset version was produced.","examples":["s3"]}},"type":"object","required":["type"],"title":"DatasetOriginResponse"},"DatasetOriginType":{"type":"string","enum":["upload","s3","demo"],"title":"DatasetOriginType"},"DatasetResponse":{"properties":{"id":{"type":"string","title":"Id","description":"The object identifier, which can be referenced in the API endpoints.","examples":["4d89c87498354518b92fa02fc0ad8720"]},"name":{"type":"string","title":"Name","description":"ID of the dataset.","examples":["example_dataset"]},"status":{"allOf":[{"$ref":"#/components/schemas/DatasetStatus"}],"description":"Current status of the dataset.","examples":["READY","FAILED","PENDING"]},"schema":{"items":{"$ref":"#/components/schemas/ColumnSchema-Output"},"type":"array","title":"Schema","description":"Dataset schema definition.","examples":[{"name":"text","type":{"name":"string"}},{"name":"text_1","type":{"item":{"name":"string"},"name":"option"}}]},"metadata":{"additionalProperties":{"anyOf":[{"type":"string"},{"items":{"type":"string"},"type":"array"}]},"type":"object","title":"Metadata","description":"Additional metadata associated with the dataset.","examples":[{}]},"current_version_origin":{"anyOf":[{"$ref":"#/components/schemas/DatasetOriginResponse"},{"type":"null"}],"description":"Origin information for the current dataset version. This object is extensible for source-specific fields.","examples":[{"type":"s3"}]},"folder":{"type":"string","title":"Folder","description":"Folder path where the dataset is stored.","examples":["/some/folder"]},"current_version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Version","description":"Current version of the dataset.","examples":["0ed2d94b38fb40b9b61f6a"]},"type":{"type":"string","title":"Type","default":"dataset"},"created_at":{"type":"integer","title":"Created At","description":"Unix timestamp when the dataset was created.","examples":[1760109124]},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Error message if the dataset is in an error state."},"ai_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id","description":"AI Studio project ID to associate with the dataset.","examples":["example_project"]}},"type":"object","required":["id","name","status","schema","metadata","folder","current_version","created_at","error"],"title":"DatasetResponse"},"DatasetStatus":{"type":"string","enum":["READY","PENDING","FAILED","TEMPORARY","DRAFT"],"title":"DatasetStatus"},"DatasetToFileBatchInferenceMapping":{"properties":{"type":{"type":"string","enum":["text_messages"],"const":"text_messages","title":"Type","default":"text_messages"},"messages":{"$ref":"#/components/schemas/MappingRecordColumn"},"max_tokens":{"anyOf":[{"$ref":"#/components/schemas/MappingRecordColumn"},{"type":"null"}]},"custom_id":{"anyOf":[{"$ref":"#/components/schemas/MappingRecordColumn"},{"type":"null"}]}},"type":"object","required":["messages"],"title":"DatasetToFileBatchInferenceMapping"},"DatasetToFileOperationResultsResponse":{"properties":{"file_id":{"type":"string","title":"File Id"}},"type":"object","required":["file_id"],"title":"DatasetToFileOperationResultsResponse"},"DatasetToFileParams":{"properties":{"purpose":{"allOf":[{"$ref":"#/components/schemas/DatasetToFilePurpose"}],"description":"Purpose of the output file.","examples":["fine_tuning","inference"]},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"Model id for inference batch export.","examples":["openai/gpt-oss-120b"]}},"type":"object","required":["purpose"],"title":"DatasetToFileParams"},"DatasetToFilePurpose":{"type":"string","enum":["fine_tuning","inference"],"title":"DatasetToFilePurpose"},"DatasetsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"list"},"first_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Id"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"},"has_more":{"type":"boolean","title":"Has More"},"data":{"items":{"$ref":"#/components/schemas/DatasetResponse"},"type":"array","title":"Data"}},"type":"object","required":["first_id","last_id","has_more","data"],"title":"DatasetsResponse"},"DedicatedEndpoint":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"description":{"type":"string","title":"Description"},"enabled":{"type":"boolean","title":"Enabled"},"routing_key":{"type":"string","title":"Routing Key"},"model_name":{"type":"string","title":"Model Name"},"flavor_name":{"type":"string","title":"Flavor Name"},"region":{"type":"string","title":"Region"},"gpu_type":{"$ref":"#/components/schemas/SupportedGPU"},"gpu_count":{"type":"integer","title":"Gpu Count"},"custom_weights_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Custom Weights Id"},"scaling":{"$ref":"#/components/schemas/EndpointScaling"},"deployment":{"$ref":"#/components/schemas/EndpointDeploymentStatus"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","name","description","enabled","routing_key","model_name","flavor_name","region","gpu_type","gpu_count","custom_weights_id","scaling","deployment","created_at"],"title":"DedicatedEndpoint"},"DedicatedEndpointCreateRequest":{"properties":{"name":{"type":"string","maxLength":100,"minLength":1,"title":"Name"},"description":{"type":"string","maxLength":500,"title":"Description","default":""},"model_name":{"type":"string","minLength":1,"title":"Model Name"},"flavor_name":{"type":"string","minLength":1,"title":"Flavor Name"},"gpu_type":{"$ref":"#/components/schemas/SupportedGPU"},"region":{"$ref":"#/components/schemas/SupportedRegion"},"gpu_count":{"type":"integer","minimum":0.0,"title":"Gpu Count"},"custom_weights_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Custom Weights Id"},"scaling":{"$ref":"#/components/schemas/EndpointScaling"}},"type":"object","required":["name","model_name","flavor_name","gpu_type","region","gpu_count","scaling"],"title":"DedicatedEndpointCreateRequest"},"DedicatedEndpointCreationResponse":{"properties":{"endpoint":{"$ref":"#/components/schemas/DedicatedEndpoint"}},"type":"object","required":["endpoint"],"title":"DedicatedEndpointCreationResponse"},"DedicatedEndpointUpdateRequest":{"properties":{"name":{"anyOf":[{"type":"string","maxLength":100,"minLength":1},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}],"title":"Description"},"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"},"gpu_type":{"anyOf":[{"$ref":"#/components/schemas/SupportedGPU"},{"type":"null"}]},"gpu_count":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Gpu Count"},"custom_weights_id":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Custom Weights Id","default":"UNSET"},"scaling":{"anyOf":[{"$ref":"#/components/schemas/EndpointScaling"},{"type":"null"}]}},"type":"object","title":"DedicatedEndpointUpdateRequest"},"DedicatedEndpointsListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/DedicatedEndpoint"},"type":"array","title":"Data"},"object":{"type":"string","title":"Object","default":"list"}},"type":"object","required":["data"],"title":"DedicatedEndpointsListResponse"},"DeleteModelStatusResponse":{"properties":{"name":{"type":"string","title":"Name","description":"The new model name.","examples":["meta-llama/Meta-Llama-3.1-8B-Instruct-LoRa:my-custom-model-udpd"]},"base_model":{"type":"string","title":"Base Model","description":"The base model identifier the new model belongs to","examples":["meta-llama/Meta-Llama-3.1-8B-Instruct-fast"]},"source":{"type":"string","title":"Source","description":"Checkpoint id from Fine-Tunes API, file id from Files API, or HuggingFace repo url","examples":["ftjob-1234567890:ftckpt_1234567890","file-1234567890","huggingface.co/sofrony/Llama-3.1-8B-Instruct-sofrony"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"created_at":{"type":"integer","title":"Created At"},"status":{"allOf":[{"$ref":"#/components/schemas/ModelStatus"}],"description":"The status of the model","examples":["deleted"]}},"type":"object","required":["name","base_model","source","created_at","status"],"title":"DeleteModelStatusResponse"},"DeploymentReadiness":{"type":"string","enum":["ready","partially_ready","not_ready"],"title":"DeploymentReadiness"},"DeploymentStatus":{"type":"string","enum":["starting","running","updating","stopping","stopped","error"],"title":"DeploymentStatus"},"EasyInputMessage":{"properties":{"content":{"anyOf":[{"type":"string"},{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseInputText"},{"$ref":"#/components/schemas/ResponseInputImage"},{"$ref":"#/components/schemas/ResponseInputFile"},{"$ref":"#/components/schemas/ResponseInputAudio"}]},"type":"array"}],"title":"Content"},"role":{"type":"string","enum":["user","assistant","system","developer"],"title":"Role"},"type":{"anyOf":[{"type":"string","enum":["message"],"const":"message"},{"type":"null"}],"title":"Type"}},"additionalProperties":true,"type":"object","required":["content","role"],"title":"EasyInputMessage"},"Embedding":{"properties":{"object":{"type":"string","title":"Object","description":"Always 'embedding'."},"embedding":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"string"}],"title":"Embedding","description":"The embedding vector."},"index":{"type":"integer","title":"Index","description":"index of embedding"}},"type":"object","required":["object","embedding","index"],"title":"Embedding"},"EmbeddingModelMetadata":{"properties":{"huggingface_url":{"anyOf":[{"type":"string","minLength":1,"format":"uri"},{"type":"null"}],"title":"Huggingface Url"},"vendor":{"type":"string","title":"Vendor"},"context_window_k":{"type":"integer","title":"Context Window K"},"embedding_dimensions":{"type":"integer","title":"Embedding Dimensions"},"size_b":{"type":"number","title":"Size B"},"license":{"anyOf":[{"$ref":"#/components/schemas/License"},{"type":"null"}]}},"type":"object","required":["vendor","context_window_k","embedding_dimensions","size_b"],"title":"EmbeddingModelMetadata"},"EmbeddingRequest":{"properties":{"model":{"type":"string","title":"Model","description":"ID of the model to use.","examples":["BAAI/bge-en-icl"]},"input":{"anyOf":[{"type":"string"},{"items":{"type":"integer"},"type":"array"},{"items":{"type":"string"},"type":"array"},{"items":{"items":{"type":"integer"},"type":"array"},"type":"array"}],"title":"Input","description":"Input text to embed, encoded as a string or array of tokens.","examples":["What's a nice vector, Victor?"]},"encoding_format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encoding Format","description":"The format to return the embeddings in. Can be either float or base64.","default":"float"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User","description":"A unique identifier representing your end-user."},"service_tier":{"allOf":[{"$ref":"#/components/schemas/ServiceTier"}],"description":"The service tier to use for the request.","default":"auto","examples":["auto","flex"]},"dimensions":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Dimensions","description":"The dimensions to use for the request.","examples":[4096,8192]}},"type":"object","required":["model","input"],"title":"EmbeddingRequest"},"EmbeddingResponse":{"properties":{"object":{"type":"string","title":"Object","description":"always 'list'."},"model":{"type":"string","title":"Model","description":"The model used for the embedding."},"usage":{"allOf":[{"$ref":"#/components/schemas/Usage"}],"description":"Token usage stats."},"data":{"items":{"$ref":"#/components/schemas/Embedding"},"type":"array","title":"Data","description":"List of Embedding objects"},"service_tier":{"allOf":[{"$ref":"#/components/schemas/ServiceTier"}],"description":"The service tier used for the request."}},"type":"object","required":["object","model","usage","data","service_tier"],"title":"EmbeddingResponse"},"EndpointConfigurations":{"properties":{"gpu_configurations":{"additionalProperties":{"$ref":"#/components/schemas/GPUConfiguration"},"type":"object","title":"Gpu Configurations"}},"type":"object","required":["gpu_configurations"],"title":"EndpointConfigurations"},"EndpointDeploymentStatus":{"properties":{"ready_replicas":{"type":"integer","title":"Ready Replicas"},"status":{"$ref":"#/components/schemas/DeploymentStatus"},"readiness":{"$ref":"#/components/schemas/DeploymentReadiness"}},"type":"object","required":["ready_replicas","status","readiness"],"title":"EndpointDeploymentStatus"},"EndpointScaling":{"properties":{"min_replicas":{"type":"integer","minimum":1.0,"title":"Min Replicas"},"max_replicas":{"type":"integer","minimum":1.0,"title":"Max Replicas"}},"type":"object","required":["min_replicas","max_replicas"],"title":"EndpointScaling"},"Error":{"properties":{"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"},"param":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Param"}},"additionalProperties":true,"type":"object","required":["code","message"],"title":"Error"},"FTCheckpointParameters":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"string","enum":["ft"],"const":"ft"}],"title":"Type","default":"ft"}},"type":"object","title":"FTCheckpointParameters"},"FileDeleted":{"properties":{"id":{"type":"string","title":"Id"},"deleted":{"type":"boolean","title":"Deleted"},"object":{"type":"string","title":"Object","default":"file"}},"type":"object","required":["id","deleted"],"title":"FileDeleted"},"FileLink":{"properties":{"url":{"type":"string","title":"Url"}},"type":"object","required":["url"],"title":"FileLink"},"FilePurpose":{"type":"string","enum":["batch","fine-tune","history"],"title":"FilePurpose"},"FileSearchTool-Input":{"properties":{"type":{"type":"string","enum":["file_search"],"const":"file_search","title":"Type"},"vector_store_ids":{"items":{"type":"string"},"type":"array","title":"Vector Store Ids"},"filters":{"anyOf":[{"$ref":"#/components/schemas/ComparisonFilter"},{"$ref":"#/components/schemas/CompoundFilter"},{"type":"null"}],"title":"Filters"},"max_num_results":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Num Results"},"ranking_options":{"anyOf":[{"$ref":"#/components/schemas/RankingOptions"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["type","vector_store_ids"],"title":"FileSearchTool"},"FileSearchTool-Output":{"properties":{"type":{"type":"string","enum":["file_search"],"const":"file_search","title":"Type"},"vector_store_ids":{"items":{"type":"string"},"type":"array","title":"Vector Store Ids"},"filters":{"anyOf":[{"$ref":"#/components/schemas/ComparisonFilter"},{"$ref":"#/components/schemas/CompoundFilter"},{"type":"null"}],"title":"Filters"},"max_num_results":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Num Results"},"ranking_options":{"anyOf":[{"$ref":"#/components/schemas/RankingOptions"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["type","vector_store_ids"],"title":"FileSearchTool"},"FileToDatasetParams":{"properties":{"file_id":{"type":"string","title":"File Id","description":"ID of the source file to convert into a dataset.","examples":["file-01954e35-a0a1-72fb-b84d-caf95f8f3a0f"]},"dataset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Name","description":"Name of the dataset.","examples":["example_dataset"]}},"type":"object","required":["file_id"],"title":"FileToDatasetParams"},"Filters":{"properties":{"allowed_domains":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowed Domains"}},"additionalProperties":true,"type":"object","title":"Filters"},"FineTuningCheckpoint":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"type":"integer","title":"Created At"},"fine_tuned_model_checkpoint":{"type":"string","title":"Fine Tuned Model Checkpoint"},"fine_tuning_job_id":{"type":"string","title":"Fine Tuning Job Id"},"metrics":{"$ref":"#/components/schemas/Metrics"},"object":{"type":"string","enum":["fine_tuning.job.checkpoint"],"const":"fine_tuning.job.checkpoint","title":"Object"},"step_number":{"type":"integer","title":"Step Number"},"result_files":{"items":{"type":"string"},"type":"array","title":"Result Files"}},"additionalProperties":true,"type":"object","required":["id","created_at","fine_tuned_model_checkpoint","fine_tuning_job_id","metrics","object","step_number","result_files"],"title":"FineTuningCheckpoint"},"FineTuningJob":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"type":"integer","title":"Created At"},"error":{"anyOf":[{"$ref":"#/components/schemas/Error"},{"type":"null"}]},"finished_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Finished At"},"hyperparameters":{"anyOf":[{"$ref":"#/components/schemas/SupervisedHParameters"},{"type":"null"}]},"method":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/SupervisedMethodConfig-Output"},{"$ref":"#/components/schemas/SpecDraftMethodConfig-Output"}],"discriminator":{"propertyName":"type","mapping":{"spec-draft":"#/components/schemas/SpecDraftMethodConfig-Output","supervised":"#/components/schemas/SupervisedMethodConfig-Output"}}},{"type":"null"}],"title":"Method"},"integrations":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/WandbIntegrationResponse"},{"$ref":"#/components/schemas/MlflowIntegrationResponse"},{"$ref":"#/components/schemas/HfExportIntegrationResponse"}]},"type":"array"},{"type":"null"}],"title":"Integrations"},"from_checkpoint":{"anyOf":[{"$ref":"#/components/schemas/HFCheckpointParametersResponse"},{"$ref":"#/components/schemas/FTCheckpointParameters"},{"type":"null"}],"title":"From Checkpoint"},"model":{"type":"string","title":"Model"},"object":{"type":"string","enum":["fine_tuning.job"],"const":"fine_tuning.job","title":"Object","default":"fine_tuning.job"},"organization_id":{"type":"string","title":"Organization Id","default":""},"result_files":{"items":{"type":"string"},"type":"array","title":"Result Files","default":[]},"seed":{"type":"integer","title":"Seed","default":0},"suffix":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Suffix"},"status":{"type":"string","enum":["validating_files","queued","running","succeeded","failed","cancelled"],"title":"Status"},"trained_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trained Tokens"},"training_file":{"type":"string","title":"Training File"},"validation_file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validation File"},"estimated_finish":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Finish"},"trained_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trained Steps"},"total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Steps"}},"additionalProperties":true,"type":"object","required":["id","created_at","model","status","training_file"],"title":"FineTuningJob"},"FineTuningJobEvent":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"type":"integer","title":"Created At"},"level":{"type":"string","enum":["info","warn","error"],"title":"Level"},"message":{"type":"string","title":"Message"},"object":{"type":"string","enum":["fine_tuning.job.event"],"const":"fine_tuning.job.event","title":"Object"},"data":{"anyOf":[{},{"type":"null"}],"title":"Data"},"type":{"anyOf":[{"type":"string","enum":["message","metrics"]},{"type":"null"}],"title":"Type"}},"additionalProperties":true,"type":"object","required":["id","created_at","level","message","object"],"title":"FineTuningJobEvent"},"FineTuningJobListResponse":{"properties":{"object":{"type":"string","title":"Object","description":"The object type, which is always 'list'","default":"list"},"data":{"items":{"$ref":"#/components/schemas/FineTuningJob"},"type":"array","title":"Data","description":"List of fine-tuning jobs"},"has_more":{"type":"boolean","title":"Has More","description":"Whether there are more jobs to fetch"}},"type":"object","required":["data","has_more"],"title":"FineTuningJobListResponse"},"FineTuningMessagesMapping":{"properties":{"type":{"type":"string","enum":["messages"],"const":"messages","title":"Type","description":"FineTuning mapping type for messages format","default":"messages"},"messages":{"$ref":"#/components/schemas/MappingRecordColumn"}},"type":"object","required":["messages"],"title":"FineTuningMessagesMapping"},"FineTuningOperationResultsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/FineTuningCheckpoint"},"type":"array","title":"Data"},"first_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Id"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","required":["data"],"title":"FineTuningOperationResultsResponse"},"FineTuningParams-Input":{"properties":{"model_name":{"type":"string","title":"Model Name","description":"The name of the model to fine-tune","examples":["meta-llama/Llama-3.1-70B-Instruct","meta-llama/Llama-3.1-8B"]},"hyperparameters":{"anyOf":[{"$ref":"#/components/schemas/SupervisedHParameters"},{"type":"null"}],"description":"Training hyperparameters (legacy field, use method instead)"},"method":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/SupervisedMethodConfig-Input"},{"$ref":"#/components/schemas/SpecDraftMethodConfig-Input"}],"discriminator":{"propertyName":"type","mapping":{"spec-draft":"#/components/schemas/SpecDraftMethodConfig-Input","supervised":"#/components/schemas/SupervisedMethodConfig-Input"}}},{"type":"null"}],"title":"Method","description":"Fine-tuning method configuration"},"from_checkpoint":{"anyOf":[{"$ref":"#/components/schemas/HFCheckpointParametersRequest-Input"},{"$ref":"#/components/schemas/FTCheckpointParameters"},{"$ref":"#/components/schemas/HFCheckpointParametersResponse"},{"type":"null"}],"title":"From Checkpoint","description":"Checkpoint to continue training from"},"integrations":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/WandbIntegrationRequest"},{"$ref":"#/components/schemas/MlflowIntegrationRequest"},{"$ref":"#/components/schemas/HfExportIntegrationRequest"},{"$ref":"#/components/schemas/WandbIntegrationResponse"},{"$ref":"#/components/schemas/MlflowIntegrationResponse"},{"$ref":"#/components/schemas/HfExportIntegrationResponse"}]},"type":"array"},{"type":"null"}],"title":"Integrations","description":"Job integration parameters"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"The seed controls the reproducibility of the job","examples":[42]},"suffix":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Suffix","description":"The suffix that will be used for output model name","examples":["my-model"]},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"List of tags to associate with the job","examples":["my-ft-job"]},"trained_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trained Steps","description":"The number of steps completed by the fine-tuning job."},"total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Steps","description":"The total number of steps that the fine-tuning job is expected to complete."},"trained_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trained Tokens","description":"The total number of billable tokens processed by this fine-tuning job.\n\n        The value will be null if the fine-tuning job is still running.\n        "},"estimated_finish":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Finish","description":"\n        The Unix timestamp (in seconds) for when the fine-tuning job is estimated to\n        finish. The value will be null if the fine-tuning job is not running.\n        "}},"type":"object","required":["model_name"],"title":"FineTuningParams"},"FineTuningParams-Output":{"properties":{"model_name":{"type":"string","title":"Model Name","description":"The name of the model to fine-tune","examples":["meta-llama/Llama-3.1-70B-Instruct","meta-llama/Llama-3.1-8B"]},"hyperparameters":{"anyOf":[{"$ref":"#/components/schemas/SupervisedHParameters"},{"type":"null"}],"description":"Training hyperparameters (legacy field, use method instead)"},"method":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/SupervisedMethodConfig-Output"},{"$ref":"#/components/schemas/SpecDraftMethodConfig-Output"}],"discriminator":{"propertyName":"type","mapping":{"spec-draft":"#/components/schemas/SpecDraftMethodConfig-Output","supervised":"#/components/schemas/SupervisedMethodConfig-Output"}}},{"type":"null"}],"title":"Method","description":"Fine-tuning method configuration"},"from_checkpoint":{"anyOf":[{"$ref":"#/components/schemas/HFCheckpointParametersRequest-Output"},{"$ref":"#/components/schemas/FTCheckpointParameters"},{"$ref":"#/components/schemas/HFCheckpointParametersResponse"},{"type":"null"}],"title":"From Checkpoint","description":"Checkpoint to continue training from"},"integrations":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/WandbIntegrationRequest"},{"$ref":"#/components/schemas/MlflowIntegrationRequest"},{"$ref":"#/components/schemas/HfExportIntegrationRequest"},{"$ref":"#/components/schemas/WandbIntegrationResponse"},{"$ref":"#/components/schemas/MlflowIntegrationResponse"},{"$ref":"#/components/schemas/HfExportIntegrationResponse"}]},"type":"array"},{"type":"null"}],"title":"Integrations","description":"Job integration parameters"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"The seed controls the reproducibility of the job","examples":[42]},"suffix":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Suffix","description":"The suffix that will be used for output model name","examples":["my-model"]},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"List of tags to associate with the job","examples":["my-ft-job"]},"trained_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trained Steps","description":"The number of steps completed by the fine-tuning job."},"total_steps":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Total Steps","description":"The total number of steps that the fine-tuning job is expected to complete."},"trained_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Trained Tokens","description":"The total number of billable tokens processed by this fine-tuning job.\n\n        The value will be null if the fine-tuning job is still running.\n        "},"estimated_finish":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Estimated Finish","description":"\n        The Unix timestamp (in seconds) for when the fine-tuning job is estimated to\n        finish. The value will be null if the fine-tuning job is not running.\n        "}},"type":"object","required":["model_name"],"title":"FineTuningParams"},"FineTuningPretokenizedMapping":{"properties":{"type":{"type":"string","enum":["pretokenized"],"const":"pretokenized","title":"Type","description":"FineTuning mapping type for pretokenized format","default":"pretokenized"},"input_ids":{"$ref":"#/components/schemas/MappingRecordColumn"},"labels":{"anyOf":[{"$ref":"#/components/schemas/MappingRecordColumn"},{"type":"null"}]},"attention_mask":{"anyOf":[{"$ref":"#/components/schemas/MappingRecordColumn"},{"type":"null"}]}},"type":"object","required":["input_ids"],"title":"FineTuningPretokenizedMapping"},"FineTuningPromptsMapping":{"properties":{"type":{"type":"string","enum":["prompts"],"const":"prompts","title":"Type","description":"FineTuning mapping type for prompts format","default":"prompts"},"prompt":{"$ref":"#/components/schemas/MappingRecordColumn"},"completion":{"$ref":"#/components/schemas/MappingRecordColumn"}},"type":"object","required":["prompt","completion"],"title":"FineTuningPromptsMapping"},"FineTuningRequest":{"properties":{"model":{"type":"string","title":"Model","description":"The name of the model to fine-tune","examples":["meta-llama/Llama-3.1-70B-Instruct","meta-llama/Llama-3.1-70B","meta-llama/Llama-3.1-8B-Instruct","meta-llama/Llama-3.1-8B"]},"from_checkpoint":{"anyOf":[{"$ref":"#/components/schemas/HFCheckpointParametersRequest-Input"},{"$ref":"#/components/schemas/FTCheckpointParameters"},{"type":"null"}],"title":"From Checkpoint","description":"Checkpoint to continue training from"},"training_file":{"type":"string","title":"Training File","description":"The ID of the uploaded training data file","examples":["file_123456"]},"validation_file":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Validation File","description":"The ID of the uploaded validation data file","examples":["file_123456"]},"hyperparameters":{"anyOf":[{"$ref":"#/components/schemas/SupervisedHParameters"},{"type":"null"}],"description":"Training hyperparameters"},"method":{"anyOf":[{"oneOf":[{"$ref":"#/components/schemas/SupervisedMethodConfig-Input"},{"$ref":"#/components/schemas/SpecDraftMethodConfig-Input"}],"discriminator":{"propertyName":"type","mapping":{"spec-draft":"#/components/schemas/SpecDraftMethodConfig-Input","supervised":"#/components/schemas/SupervisedMethodConfig-Input"}}},{"type":"null"}],"title":"Method","description":"Fine-tuning method configuration"},"integrations":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/WandbIntegrationRequest"},{"$ref":"#/components/schemas/MlflowIntegrationRequest"},{"$ref":"#/components/schemas/HfExportIntegrationRequest"}]},"type":"array"},{"type":"null"}],"title":"Integrations","description":"Job integration paramaters"},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"The seed controls the reproducibility of the job","examples":[42]},"suffix":{"anyOf":[{"type":"string","maxLength":64},{"type":"null"}],"title":"Suffix","description":"The suffix that will be used for output model name"},"tags":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tags","description":"List of tags to associate with the job","examples":["my-ft-job"]},"extra_body":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Extra Body","description":"Extra params to pass to the fine-tuning job"}},"additionalProperties":true,"type":"object","required":["model","training_file"],"title":"FineTuningRequest"},"FineTuningTextMapping":{"properties":{"type":{"type":"string","enum":["text"],"const":"text","title":"Type","description":"FineTuning mapping type for text format","default":"text"},"text":{"$ref":"#/components/schemas/MappingRecordColumn"}},"type":"object","required":["text"],"title":"FineTuningTextMapping"},"FunctionCall":{"properties":{"name":{"type":"string","title":"Name"},"arguments":{"type":"string","title":"Arguments"}},"type":"object","required":["name","arguments"],"title":"FunctionCall"},"FunctionCallOutput":{"properties":{"call_id":{"type":"string","title":"Call Id"},"output":{"type":"string","title":"Output"},"type":{"type":"string","enum":["function_call_output"],"const":"function_call_output","title":"Type"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"}},"additionalProperties":true,"type":"object","required":["call_id","output","type"],"title":"FunctionCallOutput"},"FunctionObject":{"properties":{"name":{"type":"string","title":"Name","description":"The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"A description of what the function does, used by the model to choose when and how to call the function."},"parameters":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Parameters","description":"The parameters the function accepts, described as a JSON Schema object. See the guide for examples, and the JSON Schema reference for documentation about the format."},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strict","description":"Whether to enable strict schema adherence when generating the function call. If set to true, the model will follow the exact schema defined in the parameters field. Only a subset of JSON Schema is supported when strict is true."}},"type":"object","required":["name"],"title":"FunctionObject"},"FunctionTool":{"properties":{"name":{"type":"string","title":"Name"},"parameters":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Parameters"},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strict"},"type":{"type":"string","enum":["function"],"const":"function","title":"Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"additionalProperties":true,"type":"object","required":["name","type"],"title":"FunctionTool"},"GPUConfiguration":{"properties":{"allowed_regions":{"items":{"type":"string"},"type":"array","title":"Allowed Regions"},"allowed_gpu_counts":{"items":{"type":"integer"},"type":"array","title":"Allowed Gpu Counts"},"max_replicas_allowed":{"type":"integer","title":"Max Replicas Allowed"}},"type":"object","required":["allowed_regions","allowed_gpu_counts","max_replicas_allowed"],"title":"GPUConfiguration"},"Grammar":{"properties":{"definition":{"type":"string","title":"Definition"},"syntax":{"type":"string","enum":["lark","regex"],"title":"Syntax"},"type":{"type":"string","enum":["grammar"],"const":"grammar","title":"Type"}},"additionalProperties":true,"type":"object","required":["definition","syntax","type"],"title":"Grammar"},"HFCheckpointParametersRequest-Input":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"string","enum":["hf"],"const":"hf"}],"title":"Type","default":"hf"},"repo":{"type":"string","title":"Repo"},"revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision"},"token":{"anyOf":[{"type":"string","format":"password","writeOnly":true},{"type":"null"}],"title":"Token"}},"type":"object","required":["repo"],"title":"HFCheckpointParametersRequest"},"HFCheckpointParametersRequest-Output":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"string","enum":["hf"],"const":"hf"}],"title":"Type","default":"hf"},"repo":{"type":"string","title":"Repo"},"revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},"type":"object","required":["repo"],"title":"HFCheckpointParametersRequest"},"HFCheckpointParametersResponse":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"string","enum":["hf"],"const":"hf"}],"title":"Type","default":"hf"},"repo":{"type":"string","title":"Repo"},"revision":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revision"}},"type":"object","required":["repo"],"title":"HFCheckpointParametersResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HfExportConfigRequest":{"properties":{"output_repo_name":{"type":"string","title":"Output Repo Name"},"api_token":{"type":"string","format":"password","title":"Api Token","writeOnly":true}},"type":"object","required":["output_repo_name","api_token"],"title":"HfExportConfigRequest"},"HfExportConfigResponse":{"properties":{"output_repo_name":{"type":"string","title":"Output Repo Name"}},"type":"object","required":["output_repo_name"],"title":"HfExportConfigResponse"},"HfExportIntegrationRequest":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"string","enum":["hf"],"const":"hf"}],"title":"Type","default":"hf"},"hf":{"$ref":"#/components/schemas/HfExportConfigRequest"}},"type":"object","required":["hf"],"title":"HfExportIntegrationRequest"},"HfExportIntegrationResponse":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"string","enum":["hf"],"const":"hf"}],"title":"Type","default":"hf"},"hf":{"$ref":"#/components/schemas/HfExportConfigResponse"}},"type":"object","required":["hf"],"title":"HfExportIntegrationResponse"},"Image2TextModelMetadata":{"properties":{"huggingface_url":{"anyOf":[{"type":"string","minLength":1,"format":"uri"},{"type":"null"}],"title":"Huggingface Url"},"vendor":{"type":"string","title":"Vendor"},"context_window_k":{"type":"integer","title":"Context Window K"},"size_b":{"type":"number","title":"Size B"},"license":{"anyOf":[{"$ref":"#/components/schemas/License"},{"type":"null"}]}},"type":"object","required":["vendor","context_window_k","size_b"],"title":"Image2TextModelMetadata"},"ImageGeneration":{"properties":{"type":{"type":"string","enum":["image_generation"],"const":"image_generation","title":"Type"},"background":{"anyOf":[{"type":"string","enum":["transparent","opaque","auto"]},{"type":"null"}],"title":"Background"},"input_fidelity":{"anyOf":[{"type":"string","enum":["high","low"]},{"type":"null"}],"title":"Input Fidelity"},"input_image_mask":{"anyOf":[{"$ref":"#/components/schemas/ImageGenerationInputImageMask"},{"type":"null"}]},"model":{"anyOf":[{"type":"string","enum":["gpt-image-1"],"const":"gpt-image-1"},{"type":"null"}],"title":"Model"},"moderation":{"anyOf":[{"type":"string","enum":["auto","low"]},{"type":"null"}],"title":"Moderation"},"output_compression":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Output Compression"},"output_format":{"anyOf":[{"type":"string","enum":["png","webp","jpeg"]},{"type":"null"}],"title":"Output Format"},"partial_images":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Partial Images"},"quality":{"anyOf":[{"type":"string","enum":["low","medium","high","auto"]},{"type":"null"}],"title":"Quality"},"size":{"anyOf":[{"type":"string","enum":["1024x1024","1024x1536","1536x1024","auto"]},{"type":"null"}],"title":"Size"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ImageGeneration"},"ImageGenerationCall":{"properties":{"id":{"type":"string","title":"Id"},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result"},"status":{"type":"string","enum":["in_progress","completed","generating","failed"],"title":"Status"},"type":{"type":"string","enum":["image_generation_call"],"const":"image_generation_call","title":"Type"}},"additionalProperties":true,"type":"object","required":["id","status","type"],"title":"ImageGenerationCall"},"ImageGenerationInputImageMask":{"properties":{"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"}},"additionalProperties":true,"type":"object","title":"ImageGenerationInputImageMask"},"ImageGenerationResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/ImageObject"},"type":"array","title":"Data"},"id":{"type":"string","title":"Id"}},"type":"object","required":["data","id"],"title":"ImageGenerationResponse"},"ImageObject":{"properties":{"b64_json":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"B64 Json"},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url"}},"type":"object","title":"ImageObject"},"ImageURL":{"properties":{"detail":{"anyOf":[{"type":"string","enum":["auto","low","high"]},{"type":"null"}],"title":"Detail","description":"Specifies the detail level of the image."},"url":{"type":"string","maxLength":13981514,"title":"Url","description":"Either a URL of the image or the base64 encoded image data."}},"type":"object","required":["url"],"title":"ImageURL"},"IncompleteDetails":{"properties":{"reason":{"anyOf":[{"type":"string","enum":["max_output_tokens","content_filter"]},{"type":"null"}],"title":"Reason"}},"additionalProperties":true,"type":"object","title":"IncompleteDetails"},"InputAudio":{"properties":{"data":{"type":"string","title":"Data"},"format":{"type":"string","enum":["mp3","wav"],"title":"Format"}},"additionalProperties":true,"type":"object","required":["data","format"],"title":"InputAudio"},"InputTokensDetails":{"properties":{"cached_tokens":{"type":"integer","title":"Cached Tokens"},"input_tokens_per_turn":{"items":{"type":"integer"},"type":"array","title":"Input Tokens Per Turn"},"cached_tokens_per_turn":{"items":{"type":"integer"},"type":"array","title":"Cached Tokens Per Turn"}},"type":"object","required":["cached_tokens"],"title":"InputTokensDetails"},"ItemReference":{"properties":{"id":{"type":"string","title":"Id"},"type":{"anyOf":[{"type":"string","enum":["item_reference"],"const":"item_reference"},{"type":"null"}],"title":"Type"}},"additionalProperties":true,"type":"object","required":["id"],"title":"ItemReference"},"JsonSchemaResponseFormat":{"properties":{"name":{"type":"string","title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"schema":{"anyOf":[{"type":"object"},{"type":"null"}],"title":"Schema"},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strict"}},"type":"object","required":["name"],"title":"JsonSchemaResponseFormat"},"License":{"properties":{"url":{"type":"string","minLength":1,"format":"uri","title":"Url"},"name":{"type":"string","title":"Name"}},"type":"object","required":["url","name"],"title":"License"},"ListCheckpointsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/app__models__fine_tuning__FineTuningJobCheckpoint"},"type":"array","title":"Data"},"first_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"First Id"},"last_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Last Id"},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","required":["data"],"title":"ListCheckpointsResponse"},"ListEventsResponse":{"properties":{"object":{"type":"string","title":"Object","description":"The object type, which is always 'list'","default":"list"},"data":{"items":{"$ref":"#/components/schemas/FineTuningJobEvent"},"type":"array","title":"Data"},"has_more":{"type":"boolean","title":"Has More","default":false}},"type":"object","required":["data"],"title":"ListEventsResponse"},"ListFilesResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/OpenAIFile"},"type":"array","title":"Data"},"object":{"type":"string","title":"Object","default":"list"}},"type":"object","required":["data"],"title":"ListFilesResponse"},"ListModelResponse":{"properties":{"object":{"allOf":[{"$ref":"#/components/schemas/ListObject"}],"description":"The object type, which is always `list`."},"data":{"items":{"anyOf":[{"$ref":"#/components/schemas/app__models__models__Model"},{"$ref":"#/components/schemas/RichModel"}]},"type":"array","title":"Data","description":"A list of currently available models."}},"type":"object","required":["object","data"],"title":"ListModelResponse"},"ListObject":{"type":"string","enum":["list"],"const":"list","title":"ListObject"},"LoRA":{"properties":{"url":{"type":"string","maxLength":1000,"minLength":1,"title":"Url","description":"LoRA .safetensors URL"},"scale":{"type":"number","maximum":1000.0,"minimum":0.0,"title":"Scale","description":"Scale of LoRA weights"}},"type":"object","required":["url","scale"],"title":"LoRA"},"LocalShell":{"properties":{"type":{"type":"string","enum":["local_shell"],"const":"local_shell","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"LocalShell"},"LocalShellCall":{"properties":{"id":{"type":"string","title":"Id"},"action":{"$ref":"#/components/schemas/LocalShellCallAction"},"call_id":{"type":"string","title":"Call Id"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"type":{"type":"string","enum":["local_shell_call"],"const":"local_shell_call","title":"Type"}},"additionalProperties":true,"type":"object","required":["id","action","call_id","status","type"],"title":"LocalShellCall"},"LocalShellCallAction":{"properties":{"command":{"items":{"type":"string"},"type":"array","title":"Command"},"env":{"additionalProperties":{"type":"string"},"type":"object","title":"Env"},"type":{"type":"string","enum":["exec"],"const":"exec","title":"Type"},"timeout_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout Ms"},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"},"working_directory":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Working Directory"}},"additionalProperties":true,"type":"object","required":["command","env","type"],"title":"LocalShellCallAction"},"LocalShellCallOutput":{"properties":{"id":{"type":"string","title":"Id"},"output":{"type":"string","title":"Output"},"type":{"type":"string","enum":["local_shell_call_output"],"const":"local_shell_call_output","title":"Type"},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"}},"additionalProperties":true,"type":"object","required":["id","output","type"],"title":"LocalShellCallOutput"},"Logprob":{"properties":{"token":{"type":"string","title":"Token"},"bytes":{"items":{"type":"integer"},"type":"array","title":"Bytes"},"logprob":{"type":"number","title":"Logprob"},"top_logprobs":{"items":{"$ref":"#/components/schemas/LogprobTopLogprob"},"type":"array","title":"Top Logprobs"}},"additionalProperties":true,"type":"object","required":["token","bytes","logprob","top_logprobs"],"title":"Logprob"},"LogprobTopLogprob":{"properties":{"token":{"type":"string","title":"Token"},"bytes":{"items":{"type":"integer"},"type":"array","title":"Bytes"},"logprob":{"type":"number","title":"Logprob"}},"additionalProperties":true,"type":"object","required":["token","bytes","logprob"],"title":"LogprobTopLogprob"},"MappingRecordColumn":{"properties":{"type":{"type":"string","title":"Type","default":"column"},"name":{"type":"string","title":"Name","default":"Dataset column name","examples":["messages","some_column"]}},"type":"object","title":"MappingRecordColumn"},"MappingRecordText":{"properties":{"type":{"type":"string","title":"Type","default":"text"},"value":{"type":"string","title":"Value","default":"Constant mapping value","examples":["constant_value"]}},"type":"object","title":"MappingRecordText"},"MaterializeHistoryParams":{"properties":{"start_datetime":{"type":"string","format":"date-time","title":"Start Datetime","description":"Start datetime for history materialization (ISO 8601 format).","examples":["2024-08-10T12:00:00+02:00","2024-08-10T12:00:00Z"]},"end_datetime":{"type":"string","format":"date-time","title":"End Datetime","description":"End datetime for history materialization (ISO 8601 format).","examples":["2024-08-19T14:30:00+02:00","2024-08-19T15:30:00Z"]},"dataset_name":{"type":"string","title":"Dataset Name","description":"Name of the dataset to materialize history into.","examples":["chat_history_january_2025"]},"model_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Name","description":"Optional model name to filter by model_flavor_id.","examples":["deepseek-ai/DeepSeek-V3.1-Thinking","openai/gpt-oss-120b"]}},"type":"object","required":["start_datetime","end_datetime","dataset_name"],"title":"MaterializeHistoryParams"},"Mcp-Input":{"properties":{"server_label":{"type":"string","title":"Server Label"},"type":{"type":"string","enum":["mcp"],"const":"mcp","title":"Type"},"allowed_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"$ref":"#/components/schemas/McpAllowedToolsMcpToolFilter"},{"type":"null"}],"title":"Allowed Tools"},"authorization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"},"connector_id":{"anyOf":[{"type":"string","enum":["connector_dropbox","connector_gmail","connector_googlecalendar","connector_googledrive","connector_microsoftteams","connector_outlookcalendar","connector_outlookemail","connector_sharepoint"]},{"type":"null"}],"title":"Connector Id"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"},"require_approval":{"anyOf":[{"$ref":"#/components/schemas/McpRequireApprovalMcpToolApprovalFilter"},{"type":"string","enum":["always","never"]},{"type":"null"}],"title":"Require Approval"},"server_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Description"},"server_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Url"}},"additionalProperties":true,"type":"object","required":["server_label","type"],"title":"Mcp"},"Mcp-Output":{"properties":{"server_label":{"type":"string","title":"Server Label"},"type":{"type":"string","enum":["mcp"],"const":"mcp","title":"Type"},"allowed_tools":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"$ref":"#/components/schemas/McpAllowedToolsMcpToolFilter"},{"type":"null"}],"title":"Allowed Tools"},"authorization":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authorization"},"connector_id":{"anyOf":[{"type":"string","enum":["connector_dropbox","connector_gmail","connector_googlecalendar","connector_googledrive","connector_microsoftteams","connector_outlookcalendar","connector_outlookemail","connector_sharepoint"]},{"type":"null"}],"title":"Connector Id"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers"},"require_approval":{"anyOf":[{"$ref":"#/components/schemas/McpRequireApprovalMcpToolApprovalFilter"},{"type":"string","enum":["always","never"]},{"type":"null"}],"title":"Require Approval"},"server_description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Description"},"server_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Server Url"}},"additionalProperties":true,"type":"object","required":["server_label","type"],"title":"Mcp"},"McpAllowedToolsMcpToolFilter":{"properties":{"read_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read Only"},"tool_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tool Names"}},"additionalProperties":true,"type":"object","title":"McpAllowedToolsMcpToolFilter"},"McpApprovalRequest":{"properties":{"id":{"type":"string","title":"Id"},"arguments":{"type":"string","title":"Arguments"},"name":{"type":"string","title":"Name"},"server_label":{"type":"string","title":"Server Label"},"type":{"type":"string","enum":["mcp_approval_request"],"const":"mcp_approval_request","title":"Type"}},"additionalProperties":true,"type":"object","required":["id","arguments","name","server_label","type"],"title":"McpApprovalRequest"},"McpApprovalResponse":{"properties":{"approval_request_id":{"type":"string","title":"Approval Request Id"},"approve":{"type":"boolean","title":"Approve"},"type":{"type":"string","enum":["mcp_approval_response"],"const":"mcp_approval_response","title":"Type"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"additionalProperties":true,"type":"object","required":["approval_request_id","approve","type"],"title":"McpApprovalResponse"},"McpCall":{"properties":{"id":{"type":"string","title":"Id"},"arguments":{"type":"string","title":"Arguments"},"name":{"type":"string","title":"Name"},"server_label":{"type":"string","title":"Server Label"},"type":{"type":"string","enum":["mcp_call"],"const":"mcp_call","title":"Type"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"},"output":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output"}},"additionalProperties":true,"type":"object","required":["id","arguments","name","server_label","type"],"title":"McpCall"},"McpListTools":{"properties":{"id":{"type":"string","title":"Id"},"server_label":{"type":"string","title":"Server Label"},"tools":{"items":{"$ref":"#/components/schemas/McpListToolsTool"},"type":"array","title":"Tools"},"type":{"type":"string","enum":["mcp_list_tools"],"const":"mcp_list_tools","title":"Type"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error"}},"additionalProperties":true,"type":"object","required":["id","server_label","tools","type"],"title":"McpListTools"},"McpListToolsTool":{"properties":{"input_schema":{"title":"Input Schema"},"name":{"type":"string","title":"Name"},"annotations":{"anyOf":[{},{"type":"null"}],"title":"Annotations"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"additionalProperties":true,"type":"object","required":["input_schema","name"],"title":"McpListToolsTool"},"McpRequireApprovalMcpToolApprovalFilter":{"properties":{"always":{"anyOf":[{"$ref":"#/components/schemas/McpRequireApprovalMcpToolApprovalFilterAlways"},{"type":"null"}]},"never":{"anyOf":[{"$ref":"#/components/schemas/McpRequireApprovalMcpToolApprovalFilterNever"},{"type":"null"}]}},"additionalProperties":true,"type":"object","title":"McpRequireApprovalMcpToolApprovalFilter"},"McpRequireApprovalMcpToolApprovalFilterAlways":{"properties":{"read_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read Only"},"tool_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tool Names"}},"additionalProperties":true,"type":"object","title":"McpRequireApprovalMcpToolApprovalFilterAlways"},"McpRequireApprovalMcpToolApprovalFilterNever":{"properties":{"read_only":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Read Only"},"tool_names":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Tool Names"}},"additionalProperties":true,"type":"object","title":"McpRequireApprovalMcpToolApprovalFilterNever"},"MergeParams":{"properties":{"dataset_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Dataset Name","description":"Name of the merged dataset. A generated name is used when omitted.","examples":["merged_dataset"]}},"additionalProperties":false,"type":"object","title":"MergeParams"},"Message":{"properties":{"content":{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseInputText"},{"$ref":"#/components/schemas/ResponseInputImage"},{"$ref":"#/components/schemas/ResponseInputFile"},{"$ref":"#/components/schemas/ResponseInputAudio"}]},"type":"array","title":"Content"},"role":{"type":"string","enum":["user","system","developer"],"title":"Role"},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"},"type":{"anyOf":[{"type":"string","enum":["message"],"const":"message"},{"type":"null"}],"title":"Type"}},"additionalProperties":true,"type":"object","required":["content","role"],"title":"Message"},"Metrics":{"properties":{"full_valid_loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Full Valid Loss"},"full_valid_mean_token_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Full Valid Mean Token Accuracy"},"step":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Step"},"train_loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Train Loss"},"train_mean_token_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Train Mean Token Accuracy"},"valid_loss":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Valid Loss"},"valid_mean_token_accuracy":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Valid Mean Token Accuracy"}},"additionalProperties":true,"type":"object","title":"Metrics"},"MlflowConfigRequest":{"properties":{"tracking_uri":{"type":"string","title":"Tracking Uri"},"experiment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experiment Name"},"run_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Name"},"tags":{"additionalProperties":{"type":"string"},"type":"object","title":"Tags"},"certificate_file":{"type":"string","title":"Certificate File"},"certificate_file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Certificate File Id"},"username":{"type":"string","title":"Username"},"password":{"type":"string","format":"password","title":"Password","writeOnly":true}},"type":"object","required":["tracking_uri","experiment_name","run_name","certificate_file","username","password"],"title":"MlflowConfigRequest"},"MlflowConfigResponse":{"properties":{"tracking_uri":{"type":"string","title":"Tracking Uri"},"experiment_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Experiment Name"},"run_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Run Name"},"tags":{"additionalProperties":{"type":"string"},"type":"object","title":"Tags"}},"type":"object","required":["tracking_uri","experiment_name","run_name"],"title":"MlflowConfigResponse"},"MlflowIntegrationRequest":{"properties":{"type":{"type":"string","enum":["mlflow"],"const":"mlflow","title":"Type","default":"mlflow"},"mlflow":{"$ref":"#/components/schemas/MlflowConfigRequest"}},"type":"object","required":["mlflow"],"title":"MlflowIntegrationRequest"},"MlflowIntegrationResponse":{"properties":{"type":{"type":"string","enum":["mlflow"],"const":"mlflow","title":"Type","default":"mlflow"},"mlflow":{"$ref":"#/components/schemas/MlflowConfigResponse"}},"type":"object","required":["mlflow"],"title":"MlflowIntegrationResponse"},"ModelCreationRequest":{"properties":{"name":{"type":"string","title":"Name","description":"The new model name.","examples":["my-custom-model"]},"base_model":{"type":"string","title":"Base Model","description":"The base model identifier the new model belongs to","examples":["meta-llama/Meta-Llama-3.1-8B-Instruct-fast"]},"source":{"type":"string","title":"Source","description":"Checkpoint id from Fine-Tunes API, file id from Files API, or HuggingFace repo url","examples":["ftjob-1234567890:ftckpt_1234567890","file-1234567890","huggingface.co/sofrony/Llama-3.1-8B-Instruct-sofrony"]},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["name","base_model","source"],"title":"ModelCreationRequest"},"ModelDynamicLimits":{"properties":{"enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Enabled"}},"type":"object","title":"ModelDynamicLimits"},"ModelFineTuneSettings":{"properties":{"model_id":{"type":"string","title":"Model Id"},"training_price_per_million_tokens":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Training Price Per Million Tokens"},"training_types":{"anyOf":[{"items":{"$ref":"#/components/schemas/TrainingType"},"type":"array"},{"type":"null"}],"title":"Training Types"}},"type":"object","required":["model_id"],"title":"ModelFineTuneSettings"},"ModelFlavor":{"properties":{"quantization":{"type":"string","title":"Quantization"},"use_cases":{"items":{"type":"string"},"type":"array","title":"Use Cases"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"base_model_slug":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Base Model Slug"},"available_configurations":{"$ref":"#/components/schemas/EndpointConfigurations"}},"type":"object","required":["quantization","use_cases","tags","base_model_slug","available_configurations"],"title":"ModelFlavor"},"ModelLicense":{"properties":{"url":{"type":"string","title":"Url"},"type":{"type":"string","title":"Type"},"name":{"type":"string","title":"Name"}},"type":"object","required":["url","type","name"],"title":"ModelLicense"},"ModelLimits":{"properties":{"tokens_per_minute":{"type":"number","title":"Tokens Per Minute","default":0.0},"requests_per_minute":{"type":"number","title":"Requests Per Minute"},"burst_ratio":{"type":"number","title":"Burst Ratio","default":1.0},"dynamic":{"anyOf":[{"$ref":"#/components/schemas/ModelDynamicLimits"},{"type":"null"}]},"user_specific":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/ModelLimitsBase"},"type":"object"},{"type":"null"}],"title":"User Specific"},"rate_limit_enabled":{"type":"boolean","title":"Rate Limit Enabled","default":true}},"type":"object","required":["requests_per_minute"],"title":"ModelLimits"},"ModelLimitsBase":{"properties":{"tokens_per_minute":{"type":"number","title":"Tokens Per Minute","default":0.0},"requests_per_minute":{"type":"number","title":"Requests Per Minute"},"burst_ratio":{"type":"number","title":"Burst Ratio","default":1.0},"dynamic":{"anyOf":[{"$ref":"#/components/schemas/ModelDynamicLimits"},{"type":"null"}]}},"type":"object","required":["requests_per_minute"],"title":"ModelLimitsBase"},"ModelObject":{"type":"string","enum":["model"],"const":"model","title":"ModelObject"},"ModelStatus":{"type":"string","enum":["validating","active","error","deleted"],"title":"ModelStatus","description":"Enum representing the possible statuses of a model."},"ModelsListResponse":{"properties":{"data":{"items":{"$ref":"#/components/schemas/app__models__endpoints__api__Model"},"type":"array","title":"Data"},"object":{"type":"string","title":"Object","default":"list"}},"type":"object","required":["data"],"title":"ModelsListResponse"},"OpenAIFile":{"properties":{"id":{"type":"string","title":"Id"},"bytes":{"type":"integer","title":"Bytes"},"created_at":{"type":"integer","title":"Created At"},"filename":{"type":"string","title":"Filename"},"object":{"type":"string","title":"Object","default":"file"},"purpose":{"type":"string","title":"Purpose"},"status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"},"status_details":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Details"}},"type":"object","required":["id","bytes","created_at","filename","purpose"],"title":"OpenAIFile"},"OperationDatasetToFileDataset":{"properties":{"id":{"type":"string","title":"Id","description":"The object identifier, which can be referenced in the API endpoints.","examples":["4d89c87498354518b92fa02fc0ad8720"]},"version":{"type":"string","title":"Version","description":"Version of the dataset.","examples":["0ed2d94b38fb40b9b61f6a"]}},"type":"object","required":["id","version"],"title":"OperationDatasetToFileDataset"},"OperationDstDataset":{"properties":{"id":{"type":"string","title":"Id","description":"The object identifier, which can be referenced in the API endpoints.","examples":["4d89c87498354518b92fa02fc0ad8720"]},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version","description":"Version of the dataset.","examples":["0ed2d94b38fb40b9b61f6a"]}},"type":"object","required":["id","version"],"title":"OperationDstDataset"},"OperationErrorsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"list"},"data":{"items":{"type":"string"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"OperationErrorsResponse"},"OperationResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Operation id","examples":["3a3fd2317bbe4b3bb9842bc1b5275eb9"]},"type":{"allOf":[{"$ref":"#/components/schemas/OperationType"}],"description":"Type of the operation.","examples":["yql","materialize_history","batch_inference","finetuning","file_to_dataset","dataset_to_file","merge"]},"params":{"anyOf":[{"$ref":"#/components/schemas/YQLParams"},{"$ref":"#/components/schemas/MaterializeHistoryParams"},{"$ref":"#/components/schemas/BatchInferenceParams"},{"$ref":"#/components/schemas/FineTuningParams-Output"},{"$ref":"#/components/schemas/FileToDatasetParams"},{"$ref":"#/components/schemas/DatasetToFileParams"},{"$ref":"#/components/schemas/MergeParams"}],"title":"Params","description":"Parameters specific to the operation type.","examples":[{"query":"SELECT * FROM {src_0} WHERE condition"}]},"src":{"items":{"anyOf":[{"$ref":"#/components/schemas/OperationSrcDataset-Output"},{"$ref":"#/components/schemas/OperationSrcTrainDataset-Output"},{"$ref":"#/components/schemas/OperationSrcValidationDataset-Output"},{"$ref":"#/components/schemas/OperationSrcDatasetToFile-Output"}]},"type":"array","title":"Src","description":"List of source datasets for the operation.","examples":[{"id":"example_dataset","version":"0ed2d94b38fb40b9b61f6a01b43d53de"}]},"dst":{"items":{"$ref":"#/components/schemas/OperationDstDataset"},"type":"array","title":"Dst","description":"List of destination datasets for the operation.","examples":[{"id":"example_dataset","version":"0ed2d94b38fb40b9b61f6a01b43d53de"}]},"status":{"allOf":[{"$ref":"#/components/schemas/OperationStatus"}],"description":"Current status of the operation.","examples":["queued","running","succeeded","failed","cancelled","unknown"]},"created_at":{"type":"integer","title":"Created At","description":"The Unix timestamp (in seconds) for when the operation was created.","examples":[1614807352]},"in_progress_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"In Progress At","description":"The Unix timestamp (in seconds) for when the operation started processing.","examples":[1614807352]},"finished_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Finished At","description":"The Unix timestamp (in seconds) for when the operation was completed.","examples":[1614807352]},"ai_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id","description":"AI Studio project ID to associate with the dataset.","examples":["example_project"]}},"type":"object","required":["id","type","params","src","dst","status","created_at"],"title":"OperationResponse"},"OperationSrcDataset-Input":{"properties":{"id":{"type":"string","title":"Id","description":"The object identifier, which can be referenced in the API endpoints.","examples":["4d89c87498354518b92fa02fc0ad8720"]},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version","description":"Version of the dataset.","examples":["0ed2d94b38fb40b9b61f6a"]},"mapping":{"anyOf":[{"$ref":"#/components/schemas/BatchInferenceMapping"},{"type":"null"}],"description":"Mapping of dataset fields.","examples":[{"messages":{"name":"chat_messages","type":"column"},"type":"text_messages"}]}},"type":"object","required":["id","version"],"title":"OperationSrcDataset"},"OperationSrcDataset-Output":{"properties":{"id":{"type":"string","title":"Id","description":"The object identifier, which can be referenced in the API endpoints.","examples":["4d89c87498354518b92fa02fc0ad8720"]},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version","description":"Version of the dataset.","examples":["0ed2d94b38fb40b9b61f6a"]},"mapping":{"anyOf":[{"$ref":"#/components/schemas/BatchInferenceMapping"},{"type":"null"}],"description":"Mapping of dataset fields.","examples":[{"messages":{"name":"chat_messages","type":"column"},"type":"text_messages"}]}},"type":"object","required":["id","version"],"title":"OperationSrcDataset"},"OperationSrcDatasetToFile-Input":{"properties":{"dataset":{"$ref":"#/components/schemas/OperationDatasetToFileDataset"},"mapping":{"anyOf":[{"$ref":"#/components/schemas/FineTuningTextMapping"},{"$ref":"#/components/schemas/FineTuningPromptsMapping"},{"$ref":"#/components/schemas/FineTuningMessagesMapping"},{"$ref":"#/components/schemas/DatasetToFileBatchInferenceMapping"}],"title":"Mapping","description":"Mapping for dataset-to-file export.","examples":[{"text":{"name":"text","type":"column"},"type":"text"},{"custom_id":{"name":"custom_id","type":"column"},"max_tokens":{"name":"max_tokens","type":"column"},"messages":{"name":"messages","type":"column"},"type":"text_messages"}]}},"type":"object","required":["dataset","mapping"],"title":"OperationSrcDatasetToFile"},"OperationSrcDatasetToFile-Output":{"properties":{"dataset":{"$ref":"#/components/schemas/OperationDatasetToFileDataset"},"mapping":{"anyOf":[{"$ref":"#/components/schemas/FineTuningTextMapping"},{"$ref":"#/components/schemas/FineTuningPromptsMapping"},{"$ref":"#/components/schemas/FineTuningMessagesMapping"},{"$ref":"#/components/schemas/DatasetToFileBatchInferenceMapping"}],"title":"Mapping","description":"Mapping for dataset-to-file export.","examples":[{"text":{"name":"text","type":"column"},"type":"text"},{"custom_id":{"name":"custom_id","type":"column"},"max_tokens":{"name":"max_tokens","type":"column"},"messages":{"name":"messages","type":"column"},"type":"text_messages"}]}},"type":"object","required":["dataset","mapping"],"title":"OperationSrcDatasetToFile"},"OperationSrcTrainDataset-Input":{"properties":{"id":{"type":"string","title":"Id","description":"The object identifier, which can be referenced in the API endpoints.","examples":["4d89c87498354518b92fa02fc0ad8720"]},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version","description":"Version of the dataset.","examples":["0ed2d94b38fb40b9b61f6a"]},"mapping":{"anyOf":[{"$ref":"#/components/schemas/FineTuningTextMapping"},{"$ref":"#/components/schemas/FineTuningPromptsMapping"},{"$ref":"#/components/schemas/FineTuningMessagesMapping"}],"title":"Mapping","description":"Mapping for finetuning dataset, one of: text, messages, prompts.","examples":[{"text":{"name":"text","type":"column"},"type":"text"},{"messages":{"name":"messages","type":"column"},"type":"messages"},{"completion":{"name":"completion","type":"column"},"prompt":{"name":"prompt","type":"column"},"type":"prompts"}]},"type":{"type":"string","enum":["train"],"const":"train","title":"Type","default":"train"}},"type":"object","required":["id","version","mapping"],"title":"OperationSrcTrainDataset"},"OperationSrcTrainDataset-Output":{"properties":{"id":{"type":"string","title":"Id","description":"The object identifier, which can be referenced in the API endpoints.","examples":["4d89c87498354518b92fa02fc0ad8720"]},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version","description":"Version of the dataset.","examples":["0ed2d94b38fb40b9b61f6a"]},"mapping":{"anyOf":[{"$ref":"#/components/schemas/FineTuningTextMapping"},{"$ref":"#/components/schemas/FineTuningPromptsMapping"},{"$ref":"#/components/schemas/FineTuningMessagesMapping"}],"title":"Mapping","description":"Mapping for finetuning dataset, one of: text, messages, prompts.","examples":[{"text":{"name":"text","type":"column"},"type":"text"},{"messages":{"name":"messages","type":"column"},"type":"messages"},{"completion":{"name":"completion","type":"column"},"prompt":{"name":"prompt","type":"column"},"type":"prompts"}]},"type":{"type":"string","enum":["train"],"const":"train","title":"Type","default":"train"}},"type":"object","required":["id","version","mapping"],"title":"OperationSrcTrainDataset"},"OperationSrcValidationDataset-Input":{"properties":{"id":{"type":"string","title":"Id","description":"The object identifier, which can be referenced in the API endpoints.","examples":["4d89c87498354518b92fa02fc0ad8720"]},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version","description":"Version of the dataset.","examples":["0ed2d94b38fb40b9b61f6a"]},"mapping":{"anyOf":[{"$ref":"#/components/schemas/FineTuningTextMapping"},{"$ref":"#/components/schemas/FineTuningPromptsMapping"},{"$ref":"#/components/schemas/FineTuningMessagesMapping"}],"title":"Mapping","description":"Mapping for finetuning dataset, one of: text, messages, prompts.","examples":[{"text":{"name":"text","type":"column"},"type":"text"},{"messages":{"name":"messages","type":"column"},"type":"messages"},{"completion":{"name":"completion","type":"column"},"prompt":{"name":"prompt","type":"column"},"type":"prompts"}]},"type":{"type":"string","enum":["validation"],"const":"validation","title":"Type","default":"validation"}},"type":"object","required":["id","version","mapping"],"title":"OperationSrcValidationDataset"},"OperationSrcValidationDataset-Output":{"properties":{"id":{"type":"string","title":"Id","description":"The object identifier, which can be referenced in the API endpoints.","examples":["4d89c87498354518b92fa02fc0ad8720"]},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version","description":"Version of the dataset.","examples":["0ed2d94b38fb40b9b61f6a"]},"mapping":{"anyOf":[{"$ref":"#/components/schemas/FineTuningTextMapping"},{"$ref":"#/components/schemas/FineTuningPromptsMapping"},{"$ref":"#/components/schemas/FineTuningMessagesMapping"}],"title":"Mapping","description":"Mapping for finetuning dataset, one of: text, messages, prompts.","examples":[{"text":{"name":"text","type":"column"},"type":"text"},{"messages":{"name":"messages","type":"column"},"type":"messages"},{"completion":{"name":"completion","type":"column"},"prompt":{"name":"prompt","type":"column"},"type":"prompts"}]},"type":{"type":"string","enum":["validation"],"const":"validation","title":"Type","default":"validation"}},"type":"object","required":["id","version","mapping"],"title":"OperationSrcValidationDataset"},"OperationStatus":{"type":"string","enum":["queued","running","succeeded","failed","cancelled","unknown"],"title":"OperationStatus"},"OperationType":{"type":"string","enum":["yql","materialize_history","batch_inference","finetuning","file_to_dataset","dataset_to_file","merge"],"title":"OperationType"},"OperationsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/OperationResponse"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"OperationsResponse"},"OutputImage":{"properties":{"type":{"type":"string","enum":["image"],"const":"image","title":"Type"},"url":{"type":"string","title":"Url"}},"additionalProperties":true,"type":"object","required":["type","url"],"title":"OutputImage"},"OutputLogs":{"properties":{"logs":{"type":"string","title":"Logs"},"type":{"type":"string","enum":["logs"],"const":"logs","title":"Type"}},"additionalProperties":true,"type":"object","required":["logs","type"],"title":"OutputLogs"},"OutputTokensDetails":{"properties":{"reasoning_tokens":{"type":"integer","title":"Reasoning Tokens","default":0},"tool_output_tokens":{"type":"integer","title":"Tool Output Tokens","default":0},"output_tokens_per_turn":{"items":{"type":"integer"},"type":"array","title":"Output Tokens Per Turn"},"tool_output_tokens_per_turn":{"items":{"type":"integer"},"type":"array","title":"Tool Output Tokens Per Turn"}},"type":"object","title":"OutputTokensDetails"},"PendingSafetyCheck":{"properties":{"id":{"type":"string","title":"Id"},"code":{"type":"string","title":"Code"},"message":{"type":"string","title":"Message"}},"additionalProperties":true,"type":"object","required":["id","code","message"],"title":"PendingSafetyCheck"},"PostTrainEntry":{"properties":{"type":{"type":"string","title":"Type"},"price_per_context_length":{"additionalProperties":{"$ref":"#/components/schemas/PostTrainPriceInfo"},"type":"object","title":"Price Per Context Length"},"model_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model Id"}},"type":"object","required":["type","price_per_context_length"],"title":"PostTrainEntry"},"PostTrainPriceInfo":{"properties":{"sku_id":{"type":"string","title":"Sku Id"},"price":{"type":"number","title":"Price"}},"type":"object","required":["sku_id","price"],"title":"PostTrainPriceInfo"},"Pricing":{"properties":{"prompt":{"type":"string","title":"Prompt","default":"0"},"completion":{"type":"string","title":"Completion","default":"0"},"image":{"type":"string","title":"Image","default":"0"},"price_per_video_second":{"type":"string","title":"Price Per Video Second","default":"0"},"request":{"type":"string","title":"Request","default":"0"},"price_per_minute":{"type":"string","title":"Price Per Minute","default":"0"}},"type":"object","title":"Pricing"},"PromptTokensDetails":{"properties":{"cached_tokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cached Tokens"}},"type":"object","title":"PromptTokensDetails"},"QuantizationType":{"type":"string","enum":["int4","int8","fp4","fp6","fp8","fp16","bf16","fp32"],"title":"QuantizationType","description":"Allowed quantization types according to https://openrouter.ai/docs/use-cases/for-providers."},"QueryTemplateResponse":{"properties":{"yql":{"type":"string","title":"Yql","description":"YQL template","examples":["SELECT * FROM {src_1}"]}},"type":"object","required":["yql"],"title":"QueryTemplateResponse"},"RankingOptions":{"properties":{"ranker":{"anyOf":[{"type":"string","enum":["auto","default-2024-11-15"]},{"type":"null"}],"title":"Ranker"},"score_threshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score Threshold"}},"additionalProperties":true,"type":"object","title":"RankingOptions"},"Reasoning":{"properties":{"effort":{"anyOf":[{"type":"string","enum":["minimal","low","medium","high"]},{"type":"null"}],"title":"Effort"},"generate_summary":{"anyOf":[{"type":"string","enum":["auto","concise","detailed"]},{"type":"null"}],"title":"Generate Summary"},"summary":{"anyOf":[{"type":"string","enum":["auto","concise","detailed"]},{"type":"null"}],"title":"Summary"}},"additionalProperties":true,"type":"object","title":"Reasoning"},"RerankDocument":{"properties":{"text":{"type":"string","title":"Text","description":"Text of the document"},"multi_modal":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Multi Modal","description":"Whether the document is multi-modal"}},"type":"object","required":["text"],"title":"RerankDocument"},"RerankModelMetadata":{"properties":{"huggingface_url":{"anyOf":[{"type":"string","minLength":1,"format":"uri"},{"type":"null"}],"title":"Huggingface Url"},"vendor":{"type":"string","title":"Vendor"},"context_window_k":{"type":"integer","title":"Context Window K"},"size_b":{"type":"number","title":"Size B"},"is_instruction_aware":{"type":"boolean","title":"Is Instruction Aware","default":true},"license":{"anyOf":[{"$ref":"#/components/schemas/License"},{"type":"null"}]}},"type":"object","required":["vendor","context_window_k","size_b"],"title":"RerankModelMetadata"},"RerankRequest":{"properties":{"model":{"type":"string","title":"Model","description":"ID of the model to use.","examples":["Qwen/Qwen3-Reranker-8B"]},"query":{"type":"string","title":"Query","description":"Query to rerank, encoded as a string.","examples":["What is the capital of France?"]},"documents":{"items":{"type":"string"},"type":"array","title":"Documents","description":"Documents to rerank, encoded as a list of strings.","examples":[["The capital of Brazil is Brasilia.","The capital of France is Paris.","Amsterdam","Belgrade"]]},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User","description":"A unique identifier representing your end-user."},"service_tier":{"allOf":[{"$ref":"#/components/schemas/ServiceTier"}],"description":"The service tier to use for the request.","default":"auto","examples":["auto","flex"]}},"type":"object","required":["model","query","documents"],"title":"RerankRequest"},"RerankResponse":{"properties":{"id":{"type":"string","title":"Id","description":"A unique identifier for the reranking response."},"model":{"type":"string","title":"Model","description":"The model used for the reranking."},"usage":{"allOf":[{"$ref":"#/components/schemas/RerankUsage"}],"description":"Token usage stats."},"results":{"items":{"$ref":"#/components/schemas/RerankResult"},"type":"array","title":"Results","description":"List of RerankResult objects"}},"type":"object","required":["id","model","usage","results"],"title":"RerankResponse"},"RerankResult":{"properties":{"index":{"type":"integer","title":"Index","description":"Index of the document"},"document":{"allOf":[{"$ref":"#/components/schemas/RerankDocument"}],"description":"Text of the document"},"relevance_score":{"type":"number","title":"Relevance Score","description":"Relevance score of the document"}},"type":"object","required":["index","document","relevance_score"],"title":"RerankResult"},"RerankUsage":{"properties":{"prompt_tokens":{"type":"integer","title":"Prompt Tokens","description":"Number of tokens in the prompt."},"total_tokens":{"type":"integer","title":"Total Tokens","description":"Total number of tokens used in the request."}},"type":"object","required":["prompt_tokens","total_tokens"],"title":"RerankUsage"},"ResponseCodeInterpreterToolCall":{"properties":{"id":{"type":"string","title":"Id"},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code"},"container_id":{"type":"string","title":"Container Id"},"outputs":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/OutputLogs"},{"$ref":"#/components/schemas/OutputImage"}]},"type":"array"},{"type":"null"}],"title":"Outputs"},"status":{"type":"string","enum":["in_progress","completed","incomplete","interpreting","failed"],"title":"Status"},"type":{"type":"string","enum":["code_interpreter_call"],"const":"code_interpreter_call","title":"Type"}},"additionalProperties":true,"type":"object","required":["id","container_id","status","type"],"title":"ResponseCodeInterpreterToolCall"},"ResponseComputerToolCall-Input":{"properties":{"id":{"type":"string","title":"Id"},"action":{"anyOf":[{"$ref":"#/components/schemas/ActionClick"},{"$ref":"#/components/schemas/ActionDoubleClick"},{"$ref":"#/components/schemas/ActionDrag"},{"$ref":"#/components/schemas/ActionKeypress"},{"$ref":"#/components/schemas/ActionMove"},{"$ref":"#/components/schemas/ActionScreenshot"},{"$ref":"#/components/schemas/ActionScroll"},{"$ref":"#/components/schemas/ActionType"},{"$ref":"#/components/schemas/ActionWait"}],"title":"Action"},"call_id":{"type":"string","title":"Call Id"},"pending_safety_checks":{"items":{"$ref":"#/components/schemas/PendingSafetyCheck"},"type":"array","title":"Pending Safety Checks"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"type":{"type":"string","enum":["computer_call"],"const":"computer_call","title":"Type"}},"additionalProperties":true,"type":"object","required":["id","action","call_id","pending_safety_checks","status","type"],"title":"ResponseComputerToolCall"},"ResponseComputerToolCall-Output":{"properties":{"id":{"type":"string","title":"Id"},"action":{"anyOf":[{"$ref":"#/components/schemas/ActionClick"},{"$ref":"#/components/schemas/ActionDoubleClick"},{"$ref":"#/components/schemas/ActionDrag"},{"$ref":"#/components/schemas/ActionKeypress"},{"$ref":"#/components/schemas/ActionMove"},{"$ref":"#/components/schemas/ActionScreenshot"},{"$ref":"#/components/schemas/ActionScroll"},{"$ref":"#/components/schemas/ActionType"},{"$ref":"#/components/schemas/ActionWait"}],"title":"Action"},"call_id":{"type":"string","title":"Call Id"},"pending_safety_checks":{"items":{"$ref":"#/components/schemas/PendingSafetyCheck"},"type":"array","title":"Pending Safety Checks"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"type":{"type":"string","enum":["computer_call"],"const":"computer_call","title":"Type"}},"additionalProperties":true,"type":"object","required":["id","action","call_id","pending_safety_checks","status","type"],"title":"ResponseComputerToolCall"},"ResponseComputerToolCallOutputScreenshot":{"properties":{"type":{"type":"string","enum":["computer_screenshot"],"const":"computer_screenshot","title":"Type"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ResponseComputerToolCallOutputScreenshot"},"ResponseCustomToolCall":{"properties":{"call_id":{"type":"string","title":"Call Id"},"input":{"type":"string","title":"Input"},"name":{"type":"string","title":"Name"},"type":{"type":"string","enum":["custom_tool_call"],"const":"custom_tool_call","title":"Type"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"additionalProperties":true,"type":"object","required":["call_id","input","name","type"],"title":"ResponseCustomToolCall"},"ResponseCustomToolCallOutput":{"properties":{"call_id":{"type":"string","title":"Call Id"},"output":{"type":"string","title":"Output"},"type":{"type":"string","enum":["custom_tool_call_output"],"const":"custom_tool_call_output","title":"Type"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"additionalProperties":true,"type":"object","required":["call_id","output","type"],"title":"ResponseCustomToolCallOutput"},"ResponseError":{"properties":{"code":{"type":"string","enum":["server_error","rate_limit_exceeded","invalid_prompt","vector_store_timeout","invalid_image","invalid_image_format","invalid_base64_image","invalid_image_url","image_too_large","image_too_small","image_parse_error","image_content_policy_violation","invalid_image_mode","image_file_too_large","unsupported_image_media_type","empty_image_file","failed_to_download_image","image_file_not_found"],"title":"Code"},"message":{"type":"string","title":"Message"}},"additionalProperties":true,"type":"object","required":["code","message"],"title":"ResponseError"},"ResponseExtension":{"type":"string","enum":["webp","jpg","png"],"title":"ResponseExtension"},"ResponseFileSearchToolCall":{"properties":{"id":{"type":"string","title":"Id"},"queries":{"items":{"type":"string"},"type":"array","title":"Queries"},"status":{"type":"string","enum":["in_progress","searching","completed","incomplete","failed"],"title":"Status"},"type":{"type":"string","enum":["file_search_call"],"const":"file_search_call","title":"Type"},"results":{"anyOf":[{"items":{"$ref":"#/components/schemas/Result"},"type":"array"},{"type":"null"}],"title":"Results"}},"additionalProperties":true,"type":"object","required":["id","queries","status","type"],"title":"ResponseFileSearchToolCall"},"ResponseFormatJSONObject":{"properties":{"type":{"type":"string","enum":["json_object"],"const":"json_object","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ResponseFormatJSONObject"},"ResponseFormatText":{"properties":{"type":{"type":"string","enum":["text"],"const":"text","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ResponseFormatText"},"ResponseFormatTextJSONSchemaConfig":{"properties":{"name":{"type":"string","title":"Name"},"schema":{"type":"object","title":"Schema"},"type":{"type":"string","enum":["json_schema"],"const":"json_schema","title":"Type"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"strict":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Strict"}},"additionalProperties":true,"type":"object","required":["name","schema","type"],"title":"ResponseFormatTextJSONSchemaConfig"},"ResponseFunctionToolCall":{"properties":{"arguments":{"type":"string","title":"Arguments"},"call_id":{"type":"string","title":"Call Id"},"name":{"type":"string","title":"Name"},"type":{"type":"string","enum":["function_call"],"const":"function_call","title":"Type"},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"}},"additionalProperties":true,"type":"object","required":["arguments","call_id","name","type"],"title":"ResponseFunctionToolCall"},"ResponseFunctionWebSearch-Input":{"properties":{"id":{"type":"string","title":"Id"},"action":{"anyOf":[{"$ref":"#/components/schemas/ActionSearch"},{"$ref":"#/components/schemas/ActionOpenPage"},{"$ref":"#/components/schemas/ActionFind"}],"title":"Action"},"status":{"type":"string","enum":["in_progress","searching","completed","failed"],"title":"Status"},"type":{"type":"string","enum":["web_search_call"],"const":"web_search_call","title":"Type"}},"additionalProperties":true,"type":"object","required":["id","action","status","type"],"title":"ResponseFunctionWebSearch"},"ResponseFunctionWebSearch-Output":{"properties":{"id":{"type":"string","title":"Id"},"action":{"anyOf":[{"$ref":"#/components/schemas/ActionSearch"},{"$ref":"#/components/schemas/ActionOpenPage"},{"$ref":"#/components/schemas/ActionFind"}],"title":"Action"},"status":{"type":"string","enum":["in_progress","searching","completed","failed"],"title":"Status"},"type":{"type":"string","enum":["web_search_call"],"const":"web_search_call","title":"Type"}},"additionalProperties":true,"type":"object","required":["id","action","status","type"],"title":"ResponseFunctionWebSearch"},"ResponseInputAudio":{"properties":{"input_audio":{"$ref":"#/components/schemas/InputAudio"},"type":{"type":"string","enum":["input_audio"],"const":"input_audio","title":"Type"}},"additionalProperties":true,"type":"object","required":["input_audio","type"],"title":"ResponseInputAudio"},"ResponseInputFile":{"properties":{"type":{"type":"string","enum":["input_file"],"const":"input_file","title":"Type"},"file_data":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Data"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"file_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Url"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ResponseInputFile"},"ResponseInputImage":{"properties":{"detail":{"type":"string","enum":["low","high","auto"],"title":"Detail"},"type":{"type":"string","enum":["input_image"],"const":"input_image","title":"Type"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url"}},"additionalProperties":true,"type":"object","required":["detail","type"],"title":"ResponseInputImage"},"ResponseInputText":{"properties":{"text":{"type":"string","title":"Text"},"type":{"type":"string","enum":["input_text"],"const":"input_text","title":"Type"}},"additionalProperties":true,"type":"object","required":["text","type"],"title":"ResponseInputText"},"ResponseOutputMessage-Input":{"properties":{"id":{"type":"string","title":"Id"},"content":{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseOutputText-Input"},{"$ref":"#/components/schemas/ResponseOutputRefusal"}]},"type":"array","title":"Content"},"role":{"type":"string","enum":["assistant"],"const":"assistant","title":"Role"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"type":{"type":"string","enum":["message"],"const":"message","title":"Type"}},"additionalProperties":true,"type":"object","required":["id","content","role","status","type"],"title":"ResponseOutputMessage"},"ResponseOutputMessage-Output":{"properties":{"id":{"type":"string","title":"Id"},"content":{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseOutputText-Output"},{"$ref":"#/components/schemas/ResponseOutputRefusal"}]},"type":"array","title":"Content"},"role":{"type":"string","enum":["assistant"],"const":"assistant","title":"Role"},"status":{"type":"string","enum":["in_progress","completed","incomplete"],"title":"Status"},"type":{"type":"string","enum":["message"],"const":"message","title":"Type"}},"additionalProperties":true,"type":"object","required":["id","content","role","status","type"],"title":"ResponseOutputMessage"},"ResponseOutputRefusal":{"properties":{"refusal":{"type":"string","title":"Refusal"},"type":{"type":"string","enum":["refusal"],"const":"refusal","title":"Type"}},"additionalProperties":true,"type":"object","required":["refusal","type"],"title":"ResponseOutputRefusal"},"ResponseOutputText-Input":{"properties":{"annotations":{"items":{"anyOf":[{"$ref":"#/components/schemas/AnnotationFileCitation"},{"$ref":"#/components/schemas/AnnotationURLCitation"},{"$ref":"#/components/schemas/AnnotationContainerFileCitation"},{"$ref":"#/components/schemas/AnnotationFilePath"}]},"type":"array","title":"Annotations"},"text":{"type":"string","title":"Text"},"type":{"type":"string","enum":["output_text"],"const":"output_text","title":"Type"},"logprobs":{"anyOf":[{"items":{"$ref":"#/components/schemas/Logprob"},"type":"array"},{"type":"null"}],"title":"Logprobs"}},"additionalProperties":true,"type":"object","required":["annotations","text","type"],"title":"ResponseOutputText"},"ResponseOutputText-Output":{"properties":{"annotations":{"items":{"anyOf":[{"$ref":"#/components/schemas/AnnotationFileCitation"},{"$ref":"#/components/schemas/AnnotationURLCitation"},{"$ref":"#/components/schemas/AnnotationContainerFileCitation"},{"$ref":"#/components/schemas/AnnotationFilePath"}]},"type":"array","title":"Annotations"},"text":{"type":"string","title":"Text"},"type":{"type":"string","enum":["output_text"],"const":"output_text","title":"Type"},"logprobs":{"anyOf":[{"items":{"$ref":"#/components/schemas/Logprob"},"type":"array"},{"type":"null"}],"title":"Logprobs"}},"additionalProperties":true,"type":"object","required":["annotations","text","type"],"title":"ResponseOutputText"},"ResponsePrompt":{"properties":{"id":{"type":"string","title":"Id"},"variables":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/ResponseInputText"},{"$ref":"#/components/schemas/ResponseInputImage"},{"$ref":"#/components/schemas/ResponseInputFile"}]},"type":"object"},{"type":"null"}],"title":"Variables"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version"}},"additionalProperties":true,"type":"object","required":["id"],"title":"ResponsePrompt"},"ResponseReasoningItem":{"properties":{"id":{"type":"string","title":"Id"},"summary":{"items":{"$ref":"#/components/schemas/Summary"},"type":"array","title":"Summary"},"type":{"type":"string","enum":["reasoning"],"const":"reasoning","title":"Type"},"content":{"anyOf":[{"items":{"$ref":"#/components/schemas/Content"},"type":"array"},{"type":"null"}],"title":"Content"},"encrypted_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Encrypted Content"},"status":{"anyOf":[{"type":"string","enum":["in_progress","completed","incomplete"]},{"type":"null"}],"title":"Status"}},"additionalProperties":true,"type":"object","required":["id","summary","type"],"title":"ResponseReasoningItem"},"ResponseTextConfig":{"properties":{"format":{"anyOf":[{"$ref":"#/components/schemas/ResponseFormatText"},{"$ref":"#/components/schemas/ResponseFormatTextJSONSchemaConfig"},{"$ref":"#/components/schemas/ResponseFormatJSONObject"},{"type":"null"}],"title":"Format"},"verbosity":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Verbosity"}},"additionalProperties":true,"type":"object","title":"ResponseTextConfig"},"ResponseUsage":{"properties":{"input_tokens":{"type":"integer","title":"Input Tokens"},"input_tokens_details":{"$ref":"#/components/schemas/InputTokensDetails"},"output_tokens":{"type":"integer","title":"Output Tokens"},"output_tokens_details":{"$ref":"#/components/schemas/OutputTokensDetails"},"total_tokens":{"type":"integer","title":"Total Tokens"}},"type":"object","required":["input_tokens","input_tokens_details","output_tokens","output_tokens_details","total_tokens"],"title":"ResponseUsage"},"ResponsesResponse":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"type":"integer","title":"Created At"},"error":{"anyOf":[{"$ref":"#/components/schemas/ResponseError"},{"type":"null"}]},"incomplete_details":{"anyOf":[{"$ref":"#/components/schemas/IncompleteDetails"},{"type":"null"}]},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instructions"},"metadata":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Metadata"},"model":{"type":"string","title":"Model"},"object":{"type":"string","enum":["response"],"const":"response","title":"Object","default":"response"},"output":{"items":{"anyOf":[{"$ref":"#/components/schemas/ResponseOutputMessage-Output"},{"$ref":"#/components/schemas/ResponseFileSearchToolCall"},{"$ref":"#/components/schemas/ResponseFunctionToolCall"},{"$ref":"#/components/schemas/ResponseFunctionWebSearch-Output"},{"$ref":"#/components/schemas/ResponseComputerToolCall-Output"},{"$ref":"#/components/schemas/ResponseReasoningItem"},{"$ref":"#/components/schemas/ImageGenerationCall"},{"$ref":"#/components/schemas/ResponseCodeInterpreterToolCall"},{"$ref":"#/components/schemas/LocalShellCall"},{"$ref":"#/components/schemas/McpCall"},{"$ref":"#/components/schemas/McpListTools"},{"$ref":"#/components/schemas/McpApprovalRequest"},{"$ref":"#/components/schemas/ResponseCustomToolCall"}]},"type":"array","title":"Output"},"parallel_tool_calls":{"type":"boolean","title":"Parallel Tool Calls"},"temperature":{"type":"number","title":"Temperature"},"tool_choice":{"anyOf":[{"type":"string","enum":["none","auto","required"]},{"$ref":"#/components/schemas/ToolChoiceAllowed"},{"$ref":"#/components/schemas/ToolChoiceTypes"},{"$ref":"#/components/schemas/ToolChoiceFunction"},{"$ref":"#/components/schemas/ToolChoiceMcp"},{"$ref":"#/components/schemas/ToolChoiceCustom"}],"title":"Tool Choice"},"tools":{"items":{"anyOf":[{"$ref":"#/components/schemas/FunctionTool"},{"$ref":"#/components/schemas/FileSearchTool-Output"},{"$ref":"#/components/schemas/ComputerTool"},{"$ref":"#/components/schemas/WebSearchTool"},{"$ref":"#/components/schemas/Mcp-Output"},{"$ref":"#/components/schemas/CodeInterpreter"},{"$ref":"#/components/schemas/ImageGeneration"},{"$ref":"#/components/schemas/LocalShell"},{"$ref":"#/components/schemas/CustomTool"},{"$ref":"#/components/schemas/WebSearchPreviewTool"}]},"type":"array","title":"Tools"},"top_p":{"type":"number","title":"Top P"},"background":{"type":"boolean","title":"Background"},"max_output_tokens":{"type":"integer","title":"Max Output Tokens"},"max_tool_calls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Tool Calls"},"previous_response_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Previous Response Id"},"prompt":{"anyOf":[{"$ref":"#/components/schemas/ResponsePrompt"},{"type":"null"}]},"reasoning":{"anyOf":[{"$ref":"#/components/schemas/Reasoning"},{"type":"null"}]},"service_tier":{"$ref":"#/components/schemas/ServiceTier"},"status":{"type":"string","enum":["completed","failed","in_progress","cancelled","queued","incomplete"],"title":"Status"},"text":{"anyOf":[{"$ref":"#/components/schemas/ResponseTextConfig"},{"type":"null"}]},"top_logprobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Top Logprobs"},"truncation":{"type":"string","enum":["auto","disabled"],"title":"Truncation"},"usage":{"anyOf":[{"$ref":"#/components/schemas/ResponseUsage"},{"type":"null"}]},"user":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User"}},"type":"object","required":["id","created_at","model","output","parallel_tool_calls","temperature","tool_choice","tools","top_p","background","max_output_tokens","service_tier","status","truncation"],"title":"ResponsesResponse"},"Result":{"properties":{"attributes":{"anyOf":[{"additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"type":"object"},{"type":"null"}],"title":"Attributes"},"file_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"File Id"},"filename":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filename"},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score"},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text"}},"additionalProperties":true,"type":"object","title":"Result"},"RichModel":{"properties":{"id":{"type":"string","title":"Id"},"name":{"type":"string","title":"Name"},"created":{"type":"integer","title":"Created"},"description":{"type":"string","title":"Description"},"context_length":{"type":"integer","title":"Context Length"},"architecture":{"$ref":"#/components/schemas/Architecture"},"quantization":{"anyOf":[{"$ref":"#/components/schemas/QuantizationType"},{"type":"null"}]},"pricing":{"$ref":"#/components/schemas/Pricing"},"per_request_limits":{"anyOf":[{"additionalProperties":{"type":"number"},"type":"object"},{"type":"null"}],"title":"Per Request Limits"},"status":{"anyOf":[{"$ref":"#/components/schemas/ModelStatus"},{"type":"null"}]},"status_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status Reason"},"object":{"type":"string","title":"Object","default":"model"},"owned_by":{"type":"string","title":"Owned By","default":"system"},"regions":{"anyOf":[{"items":{"$ref":"#/components/schemas/RichModelRegion"},"type":"array"},{"type":"null"}],"title":"Regions"},"supported_features":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Supported Features"},"supported_sampling_parameters":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Supported Sampling Parameters"}},"type":"object","required":["id","name","created","description","context_length","architecture","pricing"],"title":"RichModel"},"RichModelRegion":{"properties":{"country_code":{"type":"string","title":"Country Code"},"name":{"type":"string","title":"Name"}},"type":"object","required":["country_code","name"],"title":"RichModelRegion"},"SchemaOption-Input":{"properties":{"name":{"$ref":"#/components/schemas/SchemaOptionType"},"item":{"anyOf":[{"$ref":"#/components/schemas/SchemaPrimitive"},{"$ref":"#/components/schemas/SchemaOption-Input"}],"title":"Item"}},"type":"object","required":["name","item"],"title":"SchemaOption"},"SchemaOption-Output":{"properties":{"name":{"$ref":"#/components/schemas/SchemaOptionType"},"item":{"anyOf":[{"$ref":"#/components/schemas/SchemaPrimitive"},{"$ref":"#/components/schemas/SchemaOption-Output"}],"title":"Item"}},"type":"object","required":["name","item"],"title":"SchemaOption"},"SchemaOptionType":{"type":"string","enum":["option"],"const":"option","title":"SchemaOptionType"},"SchemaPrimitive":{"properties":{"name":{"$ref":"#/components/schemas/SchemaPrimitiveType"}},"type":"object","required":["name"],"title":"SchemaPrimitive"},"SchemaPrimitiveType":{"type":"string","enum":["string","integer","boolean","float","double","json","null"],"title":"SchemaPrimitiveType"},"ServiceTier":{"type":"string","enum":["auto","default","over-limit","flex","no-limit"],"title":"ServiceTier","description":"Represents the service tier for requests.\n\nAttributes:\n    Auto: Automatically choose the best available tier for the request (Default or OverLimit).\n    Analyze response to determine which tier was used.\n    Default: Return 429 errors on hitting the rate limit, do not exceed to the OverLimit tier.\n    OverLimit: Indicate that the request was over the user limit.\n            This tier cannot be set by user in the request, but us used in a response for tier=Auto.\n    Flex: Do not consume rate-limit credits, but run with lower priority. May still result in 429 errors\n    in case of if there is no resources to process."},"SpecDraftConfig-Input":{"properties":{"hyperparameters":{"$ref":"#/components/schemas/SpecDraftHParameters"}},"type":"object","required":["hyperparameters"],"title":"SpecDraftConfig"},"SpecDraftConfig-Output":{"properties":{"hyperparameters":{"$ref":"#/components/schemas/SpecDraftHParameters"}},"type":"object","required":["hyperparameters"],"title":"SpecDraftConfig"},"SpecDraftHParameters":{"properties":{"batch_size":{"type":"integer","maximum":64.0,"minimum":1.0,"title":"Batch Size","description":"Batch size for training","default":8},"learning_rate":{"type":"number","exclusiveMaximum":1.0,"exclusiveMinimum":0.0,"title":"Learning Rate","description":"Learning rate for training","default":0.0075},"n_epochs":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"N Epochs","description":"Number of epochs for training","default":1},"warmup_ratio":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Warmup Ratio","description":"Warmup ratio for learning rate","default":0.0},"weight_decay":{"type":"number","minimum":0.0,"title":"Weight Decay","description":"Weight decay for optimizer","default":0.0},"packing":{"type":"boolean","title":"Packing","description":"Whether to use packing for training","default":true},"max_grad_norm":{"type":"number","exclusiveMinimum":0.0,"title":"Max Grad Norm","description":"Maximum gradient norm for optimizer","default":1.0},"context_length":{"type":"integer","maximum":131072.0,"minimum":8192.0,"title":"Context Length","description":"Context length for training","default":8192},"architecture":{"type":"string","title":"Architecture","default":"eagle3_original"},"num_decoding_heads":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Num Decoding Heads","description":"Number of speculative decoding heads","default":3},"loss":{"allOf":[{"$ref":"#/components/schemas/SpecDraftLossParams"}],"description":"Speculative drafter loss configuration"}},"additionalProperties":true,"type":"object","title":"SpecDraftHParameters"},"SpecDraftLossParams":{"properties":{"type":{"type":"string","enum":["kl","lk_alpha","lk_hybrid"],"title":"Type","default":"kl"}},"type":"object","title":"SpecDraftLossParams"},"SpecDraftMethodConfig-Input":{"properties":{"type":{"type":"string","enum":["spec-draft"],"const":"spec-draft","title":"Type","default":"spec-draft"},"spec_draft":{"$ref":"#/components/schemas/SpecDraftConfig-Input"}},"type":"object","required":["spec_draft"],"title":"SpecDraftMethodConfig"},"SpecDraftMethodConfig-Output":{"properties":{"type":{"type":"string","enum":["spec-draft"],"const":"spec-draft","title":"Type","default":"spec-draft"},"spec_draft":{"$ref":"#/components/schemas/SpecDraftConfig-Output"}},"type":"object","required":["spec_draft"],"title":"SpecDraftMethodConfig"},"Summary":{"properties":{"text":{"type":"string","title":"Text"},"type":{"type":"string","enum":["summary_text"],"const":"summary_text","title":"Type"}},"additionalProperties":true,"type":"object","required":["text","type"],"title":"Summary"},"SupervisedConfig":{"properties":{"hyperparameters":{"$ref":"#/components/schemas/SupervisedHParameters"}},"type":"object","required":["hyperparameters"],"title":"SupervisedConfig"},"SupervisedHParameters":{"properties":{"batch_size":{"type":"integer","maximum":64.0,"minimum":1.0,"title":"Batch Size","description":"Batch size for training","default":8},"learning_rate":{"type":"number","minimum":0.0,"title":"Learning Rate","description":"Learning rate for training","default":1e-05},"n_epochs":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"N Epochs","description":"Number of epochs for training","default":3},"warmup_ratio":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Warmup Ratio","description":"Warmup ratio for learning rate","default":0.0},"weight_decay":{"type":"number","minimum":0.0,"title":"Weight Decay","description":"Weight decay for optimizer","default":0.0},"packing":{"type":"boolean","title":"Packing","description":"Whether to use packing for training","default":true},"max_grad_norm":{"type":"number","exclusiveMinimum":0.0,"title":"Max Grad Norm","description":"Maximum gradient norm for optimizer","default":1.0},"context_length":{"type":"integer","maximum":131072.0,"minimum":8192.0,"title":"Context Length","description":"Context length for training","default":8192},"lora":{"type":"boolean","title":"Lora","description":"Whether to use LoRA (Low-Rank Adaptation) for training","default":false},"lora_r":{"type":"integer","maximum":128.0,"minimum":8.0,"title":"Lora R","description":"Rank for LoRA","default":8},"lora_alpha":{"type":"integer","minimum":8.0,"title":"Lora Alpha","description":"Alpha parameter for LoRA","default":8},"lora_dropout":{"type":"number","maximum":1.0,"minimum":0.0,"title":"Lora Dropout","description":"Dropout rate for LoRA","default":0.0}},"additionalProperties":true,"type":"object","title":"SupervisedHParameters"},"SupervisedMethodConfig-Input":{"properties":{"type":{"type":"string","enum":["supervised"],"const":"supervised","title":"Type","default":"supervised"},"supervised":{"$ref":"#/components/schemas/SupervisedConfig"}},"type":"object","required":["supervised"],"title":"SupervisedMethodConfig"},"SupervisedMethodConfig-Output":{"properties":{"type":{"type":"string","enum":["supervised"],"const":"supervised","title":"Type","default":"supervised"},"supervised":{"$ref":"#/components/schemas/SupervisedConfig"}},"type":"object","required":["supervised"],"title":"SupervisedMethodConfig"},"SupportedGPU":{"type":"string","enum":["gpu-l40s-d","gpu-l40s-a","gpu-h100-sxm","gpu-h200-sxm","gpu-b200-sxm","gpu-b200-sxm-a","gpu-b300-sxm"],"title":"SupportedGPU"},"SupportedRegion":{"type":"string","enum":["eu-north1","us-central1","eu-west1","me-west1","uk-south1","tf-us1"],"title":"SupportedRegion"},"Text":{"properties":{"type":{"type":"string","enum":["text"],"const":"text","title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"Text"},"Text2TextModelMetadata":{"properties":{"huggingface_url":{"anyOf":[{"type":"string","minLength":1,"format":"uri"},{"type":"null"}],"title":"Huggingface Url"},"vendor":{"type":"string","title":"Vendor"},"context_window_k":{"type":"integer","title":"Context Window K"},"size_b":{"type":"number","title":"Size B"},"license":{"anyOf":[{"$ref":"#/components/schemas/License"},{"type":"null"}]}},"type":"object","required":["vendor","context_window_k","size_b"],"title":"Text2TextModelMetadata"},"ToolCall":{"properties":{"id":{"type":"string","title":"Id"},"type":{"type":"string","enum":["function"],"const":"function","title":"Type","default":"function"},"function":{"$ref":"#/components/schemas/FunctionCall"}},"type":"object","required":["function"],"title":"ToolCall"},"ToolChoiceAllowed":{"properties":{"mode":{"type":"string","enum":["auto","required"],"title":"Mode"},"tools":{"items":{"type":"object"},"type":"array","title":"Tools"},"type":{"type":"string","enum":["allowed_tools"],"const":"allowed_tools","title":"Type"}},"additionalProperties":true,"type":"object","required":["mode","tools","type"],"title":"ToolChoiceAllowed"},"ToolChoiceCustom":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","enum":["custom"],"const":"custom","title":"Type"}},"additionalProperties":true,"type":"object","required":["name","type"],"title":"ToolChoiceCustom"},"ToolChoiceFunction":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","enum":["function"],"const":"function","title":"Type"}},"additionalProperties":true,"type":"object","required":["name","type"],"title":"ToolChoiceFunction"},"ToolChoiceMcp":{"properties":{"server_label":{"type":"string","title":"Server Label"},"type":{"type":"string","enum":["mcp"],"const":"mcp","title":"Type"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"}},"additionalProperties":true,"type":"object","required":["server_label","type"],"title":"ToolChoiceMcp"},"ToolChoiceTypes":{"properties":{"type":{"type":"string","enum":["file_search","web_search_preview","computer_use_preview","web_search_preview_2025_03_11","image_generation","code_interpreter"],"title":"Type"}},"additionalProperties":true,"type":"object","required":["type"],"title":"ToolChoiceTypes"},"TrainingType":{"type":"string","enum":["full","lora","drafter"],"title":"TrainingType"},"UpdateDatasetInfoRequest":{"properties":{"name":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Name","description":"Dataset name.","examples":["example_dataset"]},"folder":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"title":"Folder","description":"Folder path.","examples":["/some/folder"]}},"type":"object","title":"UpdateDatasetInfoRequest"},"UploadDatasetInfoResponse":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"Dataset ID if upload is completed","examples":["4d89c87498354518b92fa02fc0ad8720"]},"name":{"type":"string","title":"Name","description":"ID of the dataset.","examples":["example_dataset"]},"schema":{"items":{"$ref":"#/components/schemas/ColumnSchema-Output"},"type":"array","title":"Schema","description":"Dataset schema definition.","examples":[{"name":"text","type":{"name":"string"}},{"name":"text_1","type":{"item":{"name":"string"},"name":"option"}}]},"folder":{"type":"string","title":"Folder","description":"Folder path where the dataset is stored.","examples":["/some/folder"]}},"type":"object","required":["name","schema","folder"],"title":"UploadDatasetInfoResponse"},"UploadInfoResponse":{"properties":{"status":{"allOf":[{"$ref":"#/components/schemas/UploadStatus"}],"description":"Current status of the upload","examples":["PENDING","COMPLETED","FAILED"]},"dataset":{"allOf":[{"$ref":"#/components/schemas/UploadDatasetInfoResponse"}],"description":"Dataset information for this upload"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"Error message if upload failed","examples":[null]},"created_at":{"type":"integer","title":"Created At","description":"Unix timestamp when the dataset was created.","examples":[1760109124]},"completed_at":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Completed At","description":"Unix timestamp when the upload was completed","examples":[1760109124]},"ai_project_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ai Project Id","description":"AI Studio project ID to associate with the dataset.","examples":["example_project"]}},"type":"object","required":["status","dataset","created_at"],"title":"UploadInfoResponse"},"UploadPartInfoResponse":{"properties":{"id":{"type":"string","title":"Id","description":"Part identifier","examples":["4d89c87498354518b92fa02fc0ad8720"]},"upload_id":{"type":"string","title":"Upload Id","description":"The object identifier, which can be referenced in the API endpoints.","examples":["4d89c87498354518b92fa02fc0ad8720"]},"status":{"type":"string","title":"Status","description":"Status of the upload part","examples":["SUCCESS","DRAFT"]},"created_at":{"type":"integer","title":"Created At","description":"Unix timestamp when the dataset was created.","examples":[1760109124]}},"type":"object","required":["id","upload_id","status","created_at"],"title":"UploadPartInfoResponse"},"UploadPartsResponse":{"properties":{"object":{"type":"string","title":"Object","default":"list"},"data":{"items":{"$ref":"#/components/schemas/UploadPartInfoResponse"},"type":"array","title":"Data"}},"type":"object","required":["data"],"title":"UploadPartsResponse"},"UploadResponse":{"properties":{"id":{"type":"string","title":"Id","description":"The object identifier, which can be referenced in the API endpoints.","examples":["4d89c87498354518b92fa02fc0ad8720"]},"upload_info":{"allOf":[{"$ref":"#/components/schemas/UploadInfoResponse"}],"description":"Detailed information about the upload"}},"type":"object","required":["id","upload_info"],"title":"UploadResponse"},"UploadStatus":{"type":"string","enum":["PENDING","COMPLETING","COMPLETED","FAILED","CANCELLED"],"title":"UploadStatus"},"Usage":{"properties":{"completion_tokens":{"type":"integer","title":"Completion Tokens","description":"Number of tokens in the generated completion."},"prompt_tokens":{"type":"integer","title":"Prompt Tokens","description":"Number of tokens in the prompt."},"total_tokens":{"type":"integer","title":"Total Tokens","description":"Total number of tokens used in the request (prompt + completion)."},"prompt_tokens_details":{"anyOf":[{"$ref":"#/components/schemas/PromptTokensDetails"},{"type":"null"}],"description":"Breakdown of tokens used in the prompt."}},"type":"object","required":["completion_tokens","prompt_tokens","total_tokens"],"title":"Usage"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VideoURL":{"properties":{"detail":{"anyOf":[{"type":"string","enum":["auto","low","high"]},{"type":"null"}],"title":"Detail","description":"Specifies the detail level of the video."},"url":{"type":"string","maxLength":13981514,"title":"Url","description":"Either a URL of the video or the base64 encoded video data."}},"type":"object","required":["url"],"title":"VideoURL"},"VllmModelFlavor":{"properties":{"model_id":{"type":"string","title":"Model Id"},"alias_for":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Alias For"},"quantization":{"anyOf":[{"$ref":"#/components/schemas/QuantizationType"},{"type":"null"}]},"model_type":{"type":"string","enum":["text2text","embedding","rerank","guard","image2text"],"title":"Model Type"},"model_name":{"type":"string","title":"Model Name"},"model_description":{"type":"string","title":"Model Description","default":""},"label":{"type":"string","title":"Label"},"external_provider":{"type":"boolean","title":"External Provider","default":false},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"use_cases":{"items":{"type":"string"},"type":"array","title":"Use Cases"},"input_price_per_million_tokens":{"type":"number","title":"Input Price Per Million Tokens"},"output_price_per_million_tokens":{"type":"number","title":"Output Price Per Million Tokens"},"tokens_per_second":{"type":"number","title":"Tokens Per Second"},"input_tps":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Input Tps"},"limits":{"anyOf":[{"$ref":"#/components/schemas/ModelLimits"},{"type":"null"}]},"max_model_len":{"type":"integer","title":"Max Model Len"},"supports_lora_adapters":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Supports Lora Adapters"},"regions":{"anyOf":[{"items":{"$ref":"#/components/schemas/RichModelRegion"},"type":"array"},{"type":"null"}],"title":"Regions"},"ai_project_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Ai Project Ids"},"blocked_ai_project_ids":{"anyOf":[{"items":{"type":"string"},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Blocked Ai Project Ids"},"context_window_k":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Context Window K"}},"type":"object","required":["model_id","model_type","model_name","label","tags","use_cases","input_price_per_million_tokens","output_price_per_million_tokens","tokens_per_second","max_model_len"],"title":"VllmModelFlavor"},"WandbConfigRequest":{"properties":{"project":{"type":"string","title":"Project"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"entity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"api_key":{"type":"string","format":"password","title":"Api Key","writeOnly":true}},"type":"object","required":["project","api_key"],"title":"WandbConfigRequest"},"WandbConfigResponse":{"properties":{"project":{"type":"string","title":"Project"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"entity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Entity"},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"}},"type":"object","required":["project"],"title":"WandbConfigResponse"},"WandbIntegrationRequest":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"string","enum":["wandb"],"const":"wandb"}],"title":"Type","default":"wandb"},"wandb":{"$ref":"#/components/schemas/WandbConfigRequest"}},"type":"object","required":["wandb"],"title":"WandbIntegrationRequest"},"WandbIntegrationResponse":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"string","enum":["wandb"],"const":"wandb"}],"title":"Type","default":"wandb"},"wandb":{"$ref":"#/components/schemas/WandbConfigResponse"}},"type":"object","required":["wandb"],"title":"WandbIntegrationResponse"},"WebSearchPreviewTool":{"properties":{"type":{"type":"string","enum":["web_search_preview","web_search_preview_2025_03_11"],"title":"Type"},"search_context_size":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Search Context Size"},"user_location":{"anyOf":[{"$ref":"#/components/schemas/openai__types__responses__web_search_preview_tool__UserLocation"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["type"],"title":"WebSearchPreviewTool"},"WebSearchTool":{"properties":{"type":{"type":"string","enum":["web_search","web_search_2025_08_26"],"title":"Type"},"filters":{"anyOf":[{"$ref":"#/components/schemas/Filters"},{"type":"null"}]},"search_context_size":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}],"title":"Search Context Size"},"user_location":{"anyOf":[{"$ref":"#/components/schemas/openai__types__responses__web_search_tool__UserLocation"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["type"],"title":"WebSearchTool"},"YQLParams":{"properties":{"query":{"type":"string","title":"Query","description":"YQL query to execute.","examples":["SELECT * FROM {src0} WHERE condition"]}},"type":"object","required":["query"],"title":"YQLParams"},"app__models__chat_completion__ResponseFormat":{"properties":{"type":{"type":"string","enum":["text","json_object","json_schema"],"title":"Type"},"json_schema":{"anyOf":[{"$ref":"#/components/schemas/JsonSchemaResponseFormat"},{"type":"null"}]}},"type":"object","required":["type"],"title":"ResponseFormat"},"app__models__endpoints__api__Model":{"properties":{"name":{"type":"string","title":"Name"},"type":{"type":"string","title":"Type"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/Text2TextModelMetadata"},{"$ref":"#/components/schemas/EmbeddingModelMetadata"},{"$ref":"#/components/schemas/Image2TextModelMetadata"},{"$ref":"#/components/schemas/RerankModelMetadata"}],"title":"Metadata"},"flavors":{"additionalProperties":{"$ref":"#/components/schemas/ModelFlavor"},"type":"object","title":"Flavors"}},"type":"object","required":["name","type","metadata","flavors"],"title":"Model"},"app__models__fine_tuning__FineTuningJobCheckpoint":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"type":"integer","title":"Created At"},"fine_tuned_model_checkpoint":{"type":"string","title":"Fine Tuned Model Checkpoint"},"fine_tuning_job_id":{"type":"string","title":"Fine Tuning Job Id"},"metrics":{"$ref":"#/components/schemas/Metrics"},"object":{"type":"string","enum":["fine_tuning.job.checkpoint"],"const":"fine_tuning.job.checkpoint","title":"Object"},"step_number":{"type":"integer","title":"Step Number"},"result_files":{"items":{"type":"string"},"type":"array","title":"Result Files"}},"additionalProperties":true,"type":"object","required":["id","created_at","fine_tuned_model_checkpoint","fine_tuning_job_id","metrics","object","step_number","result_files"],"title":"FineTuningJobCheckpoint"},"app__models__models__Model":{"properties":{"id":{"type":"string","title":"Id","description":"The model identifier, which can be referenced in the API endpoints."},"created":{"type":"integer","title":"Created","description":"The Unix timestamp (in seconds) when the model was created."},"object":{"allOf":[{"$ref":"#/components/schemas/ModelObject"}],"description":"The object type, which is always 'model'."},"owned_by":{"type":"string","title":"Owned By","description":"The organization that owns the model."},"status":{"anyOf":[{"$ref":"#/components/schemas/ModelStatus"},{"type":"null"}]}},"type":"object","required":["id","created","object","owned_by"],"title":"Model"},"app__repository__models__ResponseFormat":{"type":"string","enum":["b64_json","url"],"title":"ResponseFormat"},"openai__types__fine_tuning__jobs__fine_tuning_job_checkpoint__FineTuningJobCheckpoint":{"properties":{"id":{"type":"string","title":"Id"},"created_at":{"type":"integer","title":"Created At"},"fine_tuned_model_checkpoint":{"type":"string","title":"Fine Tuned Model Checkpoint"},"fine_tuning_job_id":{"type":"string","title":"Fine Tuning Job Id"},"metrics":{"$ref":"#/components/schemas/Metrics"},"object":{"type":"string","enum":["fine_tuning.job.checkpoint"],"const":"fine_tuning.job.checkpoint","title":"Object"},"step_number":{"type":"integer","title":"Step Number"}},"additionalProperties":true,"type":"object","required":["id","created_at","fine_tuned_model_checkpoint","fine_tuning_job_id","metrics","object","step_number"],"title":"FineTuningJobCheckpoint"},"openai__types__responses__web_search_preview_tool__UserLocation":{"properties":{"type":{"type":"string","enum":["approximate"],"const":"approximate","title":"Type"},"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"}},"additionalProperties":true,"type":"object","required":["type"],"title":"UserLocation"},"openai__types__responses__web_search_tool__UserLocation":{"properties":{"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country"},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region"},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"type":{"anyOf":[{"type":"string","enum":["approximate"],"const":"approximate"},{"type":"null"}],"title":"Type"}},"additionalProperties":true,"type":"object","title":"UserLocation"}},"securitySchemes":{"HTTPBearer":{"type":"http","scheme":"bearer"}}},"servers":[{"url":"https://api.tokenfactory.nebius.com"}]}