Scale AI Model server API

The Model server API from Scale AI — 10 operation(s) for model server.

Business capability
Model Inference AE-110.10

Operations 10

POST /v4/serving Create a new Model Server #
PUT /v4/serving/{model_server_id}/backend Change backend of the Model Server #
POST /v4/serving/a/{alias}/executeAsync Fixed Server interface for async Model execution by named alias #
POST /v4/serving/{model_server_id}/executeAsync Fixed Server interface for async Model execution #
POST /v4/serving/a/{alias}/execute Fixed Server interface for Model execution by named alias #
POST /v4/serving/{model_server_id}/execute Fixed Server interface for Model execution #
GET /v4/serving/{model_server_id}/deployment Get current deployment of the Model Server #
GET /v4/serving/a/{alias}/pollAsync/{async_task_id} Poll Async Inference for result by named alias #
GET /v4/serving/{model_server_id}/pollAsync/{async_task_id} Poll Async Inference for result #
POST /v4/serving/{model_server_id}/rollback Rollback backend of the Model Server #

Documentation

Specifications

SDKs

Schemas & Data

📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-response-object-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-chat-completion-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-spans-export-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-response-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-spans-by-span-metrics-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-spans-metrics-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-egp-api-backend-server-api-apps-public-routers-inference-inference-model-models-chat-completion-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-chat-completion-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-egp-api-backend-server-utils-model-schemas-completions-chat-completion-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-completion-request-v2-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-execute-agent-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-legacy-evaluation-response-with-views-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-agent-run-schedule-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-register-agent-response-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-update-agent-run-schedule-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-agent-run-schedule-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-span-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-span-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-research-job-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-job-entity-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-data-source-entity-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-parse-result-entity-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-file-entity-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-sgpvector-store-create-request-base-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-chat-completion-v2-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-completion-v2-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-model-endpoint-v1-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-update-model-endpoint-v1-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-batch-completions-v2-request-schema.json
📊
JSONSchema
https://artifacts.apis.io/scale-ai/json-schema/scale-ai-create-batch-completions-v1-request-schema.json

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/scale-ai:scale-ai-model-server-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

scale-ai-model-server-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: EGP API V4 Model server API
  description: This is the parent API for all EGP APIs. If you are looking for the EGP API, please go to https://api.egp.scale.com/docs.
  contact:
    name: Scale Generative AI Platform
    url: https://scale.com/genai-platform
  version: 0.1.0
servers:
- url: https://api.egp.scale.com
security: []
tags:
- name: Model server
paths:
  /v4/serving:
    post:
      tags:
      - Model server
      summary: Create a new Model Server
      operationId: POST-V4-/v4/serving
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateModelServerRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ModelServerInfo'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-source: https://docs.gp.scale.com/reference/v4/model-server/create-a-new-model-server
  /v4/serving/{model_server_id}/backend:
    put:
      tags:
      - Model server
      summary: Change backend of the Model Server
      operationId: PUT-V4-/v4/serving/{model_server_id}/backend
      parameters:
      - name: model_server_id
        in: path
        required: true
        schema:
          type: string
          title: Model Server Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ChangeBackendRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ChangeBackendResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-source: https://docs.gp.scale.com/reference/v4/model-server/change-backend-of-the-model-server
  /v4/serving/a/{alias}/executeAsync:
    post:
      tags:
      - Model server
      summary: Fixed Server interface for async Model execution by named alias
      operationId: POST-V4-/v4/serving/a/{alias}/executeAsync
      parameters:
      - name: alias
        in: path
        required: true
        schema:
          title: Alias
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenericModelRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncModelExecuteResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-source: https://docs.gp.scale.com/reference/v4/model-server/fixed-server-interface-for-async-model-execution-by-named-alias
  /v4/serving/{model_server_id}/executeAsync:
    post:
      tags:
      - Model server
      summary: Fixed Server interface for async Model execution
      operationId: POST-V4-/v4/serving/{model_server_id}/executeAsync
      parameters:
      - name: model_server_id
        in: path
        required: true
        schema:
          type: string
          title: Model Server Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenericModelRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericModelResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-source: https://docs.gp.scale.com/reference/v4/model-server/fixed-server-interface-for-async-model-execution
  /v4/serving/a/{alias}/execute:
    post:
      tags:
      - Model server
      summary: Fixed Server interface for Model execution by named alias
      operationId: POST-V4-/v4/serving/a/{alias}/execute
      parameters:
      - name: alias
        in: path
        required: true
        schema:
          title: Alias
          type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenericModelRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericModelResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-source: https://docs.gp.scale.com/reference/v4/model-server/fixed-server-interface-for-model-execution-by-named-alias
  /v4/serving/{model_server_id}/execute:
    post:
      tags:
      - Model server
      summary: Fixed Server interface for Model execution
      operationId: POST-V4-/v4/serving/{model_server_id}/execute
      parameters:
      - name: model_server_id
        in: path
        required: true
        schema:
          type: string
          title: Model Server Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GenericModelRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GenericModelResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-source: https://docs.gp.scale.com/reference/v4/model-server/fixed-server-interface-for-model-execution
  /v4/serving/{model_server_id}/deployment:
    get:
      tags:
      - Model server
      summary: Get current deployment of the Model Server
      operationId: GET-V4-/v4/serving/{model_server_id}/deployment
      parameters:
      - name: model_server_id
        in: path
        required: true
        schema:
          type: string
          title: Model Server Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetModelServerDeploymentResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-source: https://docs.gp.scale.com/reference/v4/model-server/get-current-deployment-of-the-model-server
  /v4/serving/a/{alias}/pollAsync/{async_task_id}:
    get:
      tags:
      - Model server
      summary: Poll Async Inference for result by named alias
      operationId: GET-V4-/v4/serving/a/{alias}/pollAsync/{async_task_id}
      parameters:
      - name: alias
        in: path
        required: true
        schema:
          title: Alias
          type: string
      - name: async_task_id
        in: path
        required: true
        schema:
          type: string
          title: Async Task Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncPollTaskResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-source: https://docs.gp.scale.com/reference/v4/model-server/poll-async-inference-for-result-by-named-alias
  /v4/serving/{model_server_id}/pollAsync/{async_task_id}:
    get:
      tags:
      - Model server
      summary: Poll Async Inference for result
      operationId: GET-V4-/v4/serving/{model_server_id}/pollAsync/{async_task_id}
      parameters:
      - name: model_server_id
        in: path
        required: true
        schema:
          type: string
          title: Model Server Id
      - name: async_task_id
        in: path
        required: true
        schema:
          type: string
          title: Async Task Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AsyncPollTaskResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-source: https://docs.gp.scale.com/reference/v4/model-server/poll-async-inference-for-result
  /v4/serving/{model_server_id}/rollback:
    post:
      tags:
      - Model server
      summary: Rollback backend of the Model Server
      operationId: POST-V4-/v4/serving/{model_server_id}/rollback
      parameters:
      - name: model_server_id
        in: path
        required: true
        schema:
          type: string
          title: Model Server Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RollbackResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      x-source: https://docs.gp.scale.com/reference/v4/model-server/rollback-backend-of-the-model-server
components:
  schemas:
    ChangeBackendResponse:
      properties:
        name:
          type: string
          title: Name
        model_server_id:
          type: string
          title: Model Server Id
        model_deployment_id:
          title: Model Deployment Id
          type: string
        account_id:
          type: string
          title: Account Id
        alias:
          title: Alias
          type: string
        new_model_deployment_id:
          type: string
          title: New Model Deployment Id
        old_model_deployment_id:
          title: Old Model Deployment Id
          type: string
      type: object
      required:
      - name
      - model_server_id
      - account_id
      - new_model_deployment_id
      title: ChangeBackendResponse
      description: "Point the model server to a new model deployment.\n\nArgs:\n    old_model_deployment_id(str): The ID of the model deployment to use as the new backend."
    CreateModelServerRequest:
      properties:
        name:
          type: string
          title: Name
        model_deployment_id:
          title: Model Deployment Id
          type: string
        alias:
          title: Alias
          type: string
      type: object
      required:
      - name
      - model_deployment_id
      title: CreateModelServerRequest
      description: "Create a new model server with an initial backend configuration.\n\nArgs:\n    name (str): The name of the model server. Only used for display purposes.\n    model_deployment_id (str): The ID of the model deployment to use as the initial backend.\n    alias (str, optional): An alias for the model server. Defaults to None. If configured the model\n        server can be accessed via the alias instead of the model server ID. i.e /models/server/alias/{alias}/execute"
    GetModelServerDeploymentResponse:
      properties:
        model_deployment_id:
          title: Model Deployment Id
          type: string
      type: object
      required:
      - model_deployment_id
      title: GetModelServerDeploymentResponse
    GenericModelResponse:
      properties:
        status:
          type: string
          title: Status
        status_code:
          title: Status Code
          type: integer
        error_message:
          title: Error Message
          type: string
      additionalProperties: true
      type: object
      title: GenericModelResponse
    ChangeBackendRequest:
      properties:
        new_model_deployment_id:
          type: string
          title: New Model Deployment Id
      type: object
      required:
      - new_model_deployment_id
      title: ChangeBackendRequest
    AsyncModelExecuteResponse:
      properties:
        async_task_id:
          type: string
          title: Async Task Id
      type: object
      required:
      - async_task_id
      title: AsyncModelExecuteResponse
    ModelServerInfo:
      properties:
        name:
          type: string
          title: Name
        model_server_id:
          type: string
          title: Model Server Id
        model_deployment_id:
          title: Model Deployment Id
          type: string
        account_id:
          type: string
          title: Account Id
        alias:
          title: Alias
          type: string
      type: object
      required:
      - name
      - model_server_id
      - account_id
      title: ModelServerInfo
      description: 'Model server information.

        name: The name of the model server. Only used for display purposes.

        model_server_id: The ID of the model server.

        model_deployment_id: The ID of the model deployment being used as the backend.

        account_id: The ID of the account that owns the model server.

        alias: An alias for the model server. If configured the model server can be accessed via the alias instead of the model server ID. i.e /models/server/alias/{alias}/execute'
    RollbackResponse:
      properties:
        rolled_back_to_deployment:
          type: string
          title: Rolled Back To Deployment
        from_deployment:
          type: string
          title: From Deployment
      type: object
      required:
      - rolled_back_to_deployment
      - from_deployment
      title: RollbackResponse
    AsyncPollTaskResponse:
      properties:
        status:
          type: string
          title: Status
        result:
          title: Result
        traceback:
          title: Traceback
          type: string
        reason:
          title: Reason
          type: string
        code:
          title: Code
          type: string
      type: object
      required:
      - status
      title: AsyncPollTaskResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
          additionalProperties: true
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    GenericModelRequest:
      properties:
        stream:
          title: Stream
          description: Flag indicating whether to stream the completion response
          default: false
          type: boolean
      additionalProperties: true
      type: object
      title: GenericModelRequest
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key
x-assembled-from: Per-operation OpenAPI fragments embedded verbatim in docs.gp.scale.com reference pages; source spec https://api.sgp.scale.com/openapi-versions/v4/openapi.json (404 when assembled)