How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

LocalAI Inference API

The inference API from LocalAI — 7 operation(s) for inference.

LocalAI Inference API is one of 26 APIs that LocalAI publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

Tagged areas include Inference. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, authentication docs, and an AsyncAPI specification.

This API exposes 7 operations across 7 paths, and defines 43 schemas. It is described by OpenAPI 3.2.0, at version 2.0.0.

Requests are made against a single base URL, /.

7 operations 7 paths 43 schemas 1 GET6 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
2.0.0
Base URL
http://{localai-host}:8080
Authentication
API Key
Contact
License
Resource Areas
1

Authentication & Security 1

LocalAI Inference API declares 1 security scheme for authenticating requests. An API key is passed in the header as Authorization (BearerAuth).

Paths & Operations 7

Across 7 paths, the API surfaces 7 operations — 1 GET, 6 POST. Each is listed below with its method, path, parameters, and response codes.

inference 7
POST
/v1/chat/completions
Generate a chat completions for a given prompt and model.
body → 200
POST
/v1/completions
Generate completions for a given prompt and model.
body → 200
POST
/v1/edits
OpenAI edit endpoint
body → 200
POST
/v1/messages
Generate a message response for the given messages and model.
body → 200
POST
/v1/responses
Create a response using the Open Responses API
body → 200
GET
/v1/responses/{id}
Get a response by ID
3 params → 200400404
POST
/v1/responses/{id}/cancel
Cancel a response
1 param → 200400404

Schemas 43

The contract defines 43 schemas that model the data the API accepts and returns. The most detailed are schema.OpenAIRequest (57 properties), schema.ORResponseResource (31 properties), schema.OpenResponsesRequest (25 properties), schema.AnthropicRequest (13 properties). Each schema is shown below with its type and property counts.

functions.Item
object
2 properties
schema.ORTextFormat
object
1 property
functions.Function
object
4 properties
schema.LogprobsValue
object
1 property
schema.ORTextConfig
object
1 property
schema.ORError
object
4 properties
schema.AnthropicResponse
object
8 properties
schema.AnthropicUsage
object
2 properties
schema.ORReasoningParam
object
2 properties
schema.AnthropicImageSource
object
3 properties
schema.ORIncompleteDetails
object
1 property
schema.OpenResponsesRequest
object
25 properties
schema.CompressionMetadata
object
6 properties
schema.ORUsage
object
5 properties
schema.InputTokensDetails
object
2 properties
schema.ORResponseResource
object
31 properties
schema.StreamOptions
object
1 property
schema.ORReasoning
object
2 properties
schema.AnthropicContentBlock
object
11 properties
schema.Choice
object
6 properties
schema.OpenAIRequest
object
57 properties 1 required
schema.AnthropicTool
object
3 properties
schema.AnthropicRequest
object
13 properties
schema.ORFunctionTool
object
5 properties
schema.LogprobContent
object
5 properties
schema.ORItemField
object
11 properties
schema.ORAnnotation
object
5 properties
schema.ORInputTokensDetails
object
1 property
schema.ORTopLogProb
object
3 properties
schema.ORContentPart
object
10 properties
functions.Tool
object
2 properties
schema.AnthropicThinkingParam
object
2 properties
schema.ToolCall
object
4 properties
schema.Message
object
7 properties
schema.OROutputTokensDetails
object
1 property
functions.JSONFunctionStructure
object
3 properties
schema.Item
object
4 properties
schema.OpenAIUsage
object
9 properties
schema.AnthropicMessage
object
2 properties
schema.ORLogProb
object
4 properties
schema.OpenAIResponse
object
7 properties
schema.FunctionCall
object
2 properties
schema.Logprobs
object
1 property

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

localai-inference-api-openapi.yml Raw ↑

Other APIs LocalAI publishes across the network.

LocalAI 3d API
LocalAI Agent Jobs API
LocalAI Audio API
LocalAI Backends API
LocalAI Branding API
LocalAI Config API
LocalAI Depth API
LocalAI Detection API
LocalAI Embeddings API
LocalAI Face Recognition API
LocalAI Images API
LocalAI Instructions API
Where this information came from

This is an independent, third-party profile of LocalAI Inference API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.