Unsloth · Authentication Profile

Unsloth Authentication

Authentication

Authentication profile for the Unsloth local API (2026-07-21). Unsloth has no hosted API; models loaded in Unsloth Studio are exposed on the user's own machine as an authenticated OpenAI/Anthropic-compatible endpoint via llama-server. Keys are created in Studio (Settings -> API) or auto-created by `unsloth run`; Unsloth stores only a hash and shows the key once. Requests with a revoked key fail 401 Unauthorized. No OpenAPI is published, so this profile is captured from the docs rather than derived from a spec.

Unsloth secures its APIs with apiKey across 1 declared security scheme, as derived from its OpenAPI definitions.

CompanyArtificial IntelligenceLLM Fine-TuningMachine LearningOpen SourceReinforcement LearningQuantizationLocal AIDeveloper Tools
Methods: apiKey Schemes: 1 OAuth flows: API key in: header

Security Schemes

UnslothApiKey apiKey
· in: header ()

Source

Authentication Profile

unsloth-authentication.yml Raw ↑
generated: '2026-07-21'
method: searched
docs: https://unsloth.ai/docs/basics/api
source: https://unsloth.ai/docs/basics/api
description: >-
  Authentication profile for the Unsloth local API (2026-07-21). Unsloth has
  no hosted API; models loaded in Unsloth Studio are exposed on the user's own
  machine as an authenticated OpenAI/Anthropic-compatible endpoint via
  llama-server. Keys are created in Studio (Settings -> API) or auto-created
  by `unsloth run`; Unsloth stores only a hash and shows the key once.
  Requests with a revoked key fail 401 Unauthorized. No OpenAPI is published,
  so this profile is captured from the docs rather than derived from a spec.
summary:
  types: [apiKey]
  api_key_in: [header]
  oauth2_flows: []
schemes:
  - name: UnslothApiKey
    type: apiKey
    in: header
    header: Authorization (Bearer)
    key_prefix: sk-unsloth-
    scope: local instance only (http://localhost:PORT base URL)
    revocation: Keys revocable in Studio Settings -> API; revoked keys return 401 Unauthorized.
    expiry: Optional expiry settable at key creation.
    sources: [https://unsloth.ai/docs/basics/api]
endpoints:
  - path: /v1/chat/completions
    dialect: OpenAI-compatible
  - path: /v1/responses
    dialect: OpenAI-compatible
  - path: /v1/messages
    dialect: Anthropic-compatible