OneInfer · Schema

CreateEndpointRequest

Endpoint creation request for simplified deployment. Required fields: model_id (or huggingface_image_url) Optional fields: All others have sensible defaults

Artificial IntelligenceInferenceCloudPlatformOpenAI-Compatible

Properties

Name Type Description
model_id object HuggingFace model ID (e.g., 'Qwen/Qwen2.5-7B-Instruct')
worker_config object Worker scaling configuration
endpoint_id object Endpoint ID (auto-generated if not provided). If provided, uses existing endpoint instead of creating new one
instance_id object Existing GPU instance ID to use as the deployment target
name object Endpoint name (auto-generated if not provided)
max_concurrency object Max concurrent requests
gpu_count object Number of GPUs
scale object Scaling configuration
gpu_id object GPU type ID
idle_timeout_seconds integer
template_id object
huggingface_image_url object
volume_size object Additional volume size in GB (Verda: volume, Novita AI: network storage)
region object Deployment region
command object Container command/args
environment object Environment variables for the deployment
hf_token object Hugging Face API token for private models
View JSON Schema on GitHub

JSON Schema

oneinfer-ai-create-endpoint-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oneinfer-ai/json-schema/oneinfer-ai-create-endpoint-request-schema.json",
  "title": "CreateEndpointRequest",
  "description": "Endpoint creation request for simplified deployment.\n\nRequired fields: model_id (or huggingface_image_url)\nOptional fields: All others have sensible defaults",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oneinfer-ai-openapi.json#/components/schemas/CreateEndpointRequest",
  "properties": {
    "model_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Model Id",
      "description": "HuggingFace model ID (e.g., 'Qwen/Qwen2.5-7B-Instruct')"
    },
    "worker_config": {
      "anyOf": [
        {
          "$ref": "#/$defs/WorkerConfig"
        },
        {
          "type": "null"
        }
      ],
      "description": "Worker scaling configuration"
    },
    "endpoint_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Endpoint Id",
      "description": "Endpoint ID (auto-generated if not provided). If provided, uses existing endpoint instead of creating new one"
    },
    "instance_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Instance Id",
      "description": "Existing GPU instance ID to use as the deployment target"
    },
    "name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Name",
      "description": "Endpoint name (auto-generated if not provided)"
    },
    "max_concurrency": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Max Concurrency",
      "description": "Max concurrent requests"
    },
    "gpu_count": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Gpu Count",
      "description": "Number of GPUs"
    },
    "scale": {
      "anyOf": [
        {
          "$ref": "#/$defs/ScalingConfig"
        },
        {
          "type": "null"
        }
      ],
      "description": "Scaling configuration"
    },
    "gpu_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Gpu Id",
      "description": "GPU type ID"
    },
    "idle_timeout_seconds": {
      "type": "integer",
      "title": "Idle Timeout Seconds",
      "default": 10
    },
    "template_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Template Id"
    },
    "huggingface_image_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Huggingface Image Url"
    },
    "volume_size": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Volume Size",
      "description": "Additional volume size in GB (Verda: volume, Novita AI: network storage)"
    },
    "region": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Region",
      "description": "Deployment region"
    },
    "command": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Command",
      "description": "Container command/args"
    },
    "environment": {
      "anyOf": [
        {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Environment",
      "description": "Environment variables for the deployment"
    },
    "hf_token": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Hf Token",
      "description": "Hugging Face API token for private models"
    }
  },
  "type": "object",
  "$defs": {
    "ScalingConfig": {
      "properties": {
        "scaler_type": {
          "$ref": "#/$defs/ScalingType"
        },
        "scaler_value": {
          "type": "integer",
          "title": "Scaler Value"
        }
      },
      "type": "object",
      "required": [
        "scaler_type",
        "scaler_value"
      ],
      "title": "ScalingConfig"
    },
    "ScalingType": {
      "type": "string",
      "enum": [
        "queue",
        "request_count"
      ],
      "title": "ScalingType"
    },
    "WorkerConfig": {
      "properties": {
        "min_workers": {
          "type": "integer",
          "title": "Min Workers"
        },
        "max_workers": {
          "type": "integer",
          "title": "Max Workers"
        }
      },
      "type": "object",
      "required": [
        "min_workers",
        "max_workers"
      ],
      "title": "WorkerConfig"
    }
  }
}

Work with this as data

Every JSON Schema 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 schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • 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 JSON Schema
curl "https://apis.io/api/v1/json-schemas/oneinfer-ai-create-endpoint-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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