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

0G Labs Inference API

The Inference API from 0G Labs — 11 operation(s) for inference.

0G Labs Inference API is one of 9 APIs that 0G Labs publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Inference. The published artifact set on APIs.io includes an OpenAPI specification, an API reference, API documentation, a getting-started guide, authentication docs, and rate-limit docs.

This API exposes 11 operations across 11 paths, and defines 31 schemas. It is described by OpenAPI 3.2.0, at version 1.0.

Requests are made against a single base URL, /v1.

11 operations 11 paths 31 schemas 2 GET9 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.0
Base URL
https://router-api.0g.ai/v1
Authentication
API Key, API Key
Contact
Terms of Service
Resource Areas
1

Authentication & Security 2

0G Labs Inference API declares 2 security schemes for authenticating requests. An API key is passed in the header as Authorization (ApiKeyAuth). An API key is passed in the header as Authorization (ManagementKeyAuth).

  • ApiKeyAuth — API key for inference, file upload, and async image endpoints. Format: "Bearer sk-..."
  • ManagementKeyAuth — Management key for account read and API key management. Capabilities are scope-limited per key (account:read, keys:read, keys:create, keys:manage). Format: "Be…

Paths & Operations 11

Across 11 paths, the API surfaces 11 operations — 2 GET, 9 POST. Each is listed below with its method, path, parameters, and response codes.

Inference 11
POST
/async/images/edits
Submit async image edit job
4 params → 202400401402423503
POST
/async/images/generations
Submit async image generation job
4 params body → 202400401402423503
POST
/audio/transcriptions
Audio transcription
4 params body → 200400401402404423429503
POST
/chat/completions
Chat completion
4 params body → 200400401402404423429502
POST
/images/edits
Image editing
4 params body → 200400401402404423429503
POST
/images/generations
Image generation
4 params body → 200400401402404423429503
POST
/messages
Anthropic Messages API
4 params body → 200400401402404423429502
POST
/routing/preview
Preview provider selection (E2EE)
body → 200400401404503
POST
/videos
Submit async video generation job
4 params body → 200400402404423429501503
GET
/videos/{id}
Poll async video generation job
3 params → 200400403404502
GET
/videos/{id}/content
Download a completed video
3 params → 200400403404409424429502

Schemas 31

The contract defines 31 schemas that model the data the API accepts and returns. The most detailed are github_com_0glabs_0g-router_pkg_inference.AnthropicRequest (15 properties), github_com_0glabs_0g-router_pkg_inference.ChatCompletionRequest (12 properties), github_com_0glabs_0g-router_pkg_inference.AnthropicResponse (7 properties), github_com_0glabs_0g-router_pkg_inference.ChatCompletionResponseWithTrace (7 properties). Each schema is shown below with its type and property counts.

github_com_0glabs_0g-router_pkg_inference.ImageGenerationResponse
object
2 properties
github_com_0glabs_0g-router_pkg_inference.Attachment
object
1 property
github_com_0glabs_0g-router_pkg_inference.BillingInfo
object
4 properties
github_com_0glabs_0g-router_pkg_inference.ImageData
object
3 properties
github_com_0glabs_0g-router_pkg_inference.AnthropicUsage
object
5 properties
github_com_0glabs_0g-router_pkg_inference.Usage
object
4 properties
github_com_0glabs_0g-router_pkg_inference.AnthropicRequest
object
15 properties
internal_handler.RoutePreviewCandidate
object
4 properties
github_com_0glabs_0g-router_pkg_inference.ChatMessage
object
2 properties
github_com_0glabs_0g-router_pkg_response.ErrorDetail
object
3 properties
github_com_0glabs_0g-router_pkg_inference.ProviderPreferences
object
4 properties
github_com_0glabs_0g-router_pkg_inference.AudioTranscriptionResponse
object
3 properties
github_com_0glabs_0g-router_pkg_inference.RequestMessage
object
2 properties
github_com_0glabs_0g-router_pkg_inference.ToolFunction
object
3 properties
github_com_0glabs_0g-router_pkg_inference.DeltaMessage
object
4 properties
internal_handler.RoutePreviewRequest
object
2 properties
github_com_0glabs_0g-router_pkg_inference.ChatCompletionResponseWithTrace
object
7 properties
github_com_0glabs_0g-router_pkg_inference.PromptTokensDetails
object
3 properties
github_com_0glabs_0g-router_pkg_inference.TraceInfo
object
4 properties
github_com_0glabs_0g-router_pkg_inference.ChatCompletionRequest
object
12 properties
github_com_0glabs_0g-router_pkg_inference.Choice
object
4 properties
github_com_0glabs_0g-router_pkg_inference.AnthropicResponse
object
7 properties
github_com_0glabs_0g-router_pkg_inference.AnthropicContentBlock
object
5 properties
github_com_0glabs_0g-router_pkg_inference.Plugin
object
1 property
github_com_0glabs_0g-router_pkg_inference.ResponseFormat
object
2 properties
github_com_0glabs_0g-router_pkg_inference.Tool
object
2 properties
github_com_0glabs_0g-router_pkg_inference.ImageGenerationRequest
object
5 properties
github_com_0glabs_0g-router_pkg_inference.AnthropicCacheCreation
object
2 properties
internal_handler.RoutePreviewResponse
object
3 properties
github_com_0glabs_0g-router_pkg_response.ErrorResponse
object
2 properties
github_com_0glabs_0g-router_pkg_inference.AudioTranscriptionRequest
object
5 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

0g-labs-inference-api-openapi.yml Raw ↑

Other APIs 0G Labs publishes across the network.

0G Chain JSON-RPC
0G DA (Data Availability) gRPC
0G Storage Indexer
0G Labs Account API
0G Labs API Key API
0G Labs Models API
0G Labs Provider API
0G Labs Service Types API
Where this information came from

This is an independent, third-party profile of 0G Labs 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.