Skip to navigation

Look up one canonical model

View as Markdown

Answers with the same object shape as an entry in GET /inference/v1/models’s data array — capabilities, supported_parameters, and pricing — for exactly one canonical id, filtered by the same availability rule: an id this gateway doesn’t support answers the identical 404 model_not_found.

Authentication

AuthorizationBearer

Your per-client bearer token — the API key the gateway issued to you. Present it in Authorization: Bearer <token> form. A token that is missing, unknown, or revoked draws a 401. Before the call is sent upstream the token is removed (stripped, or swapped for the upstream’s own credential); it never makes it past the gateway.

Path parameters

idstringRequired

The canonical model id to look up. IDs can themselves contain further / segments — the Hugging Face form is huggingface/<owner>/<model>[:provider] — so this segment is a slash-inclusive wildcard capture, the same pattern this spec uses for {path} on the twenty-four transparent wildcard proxies (e.g. /firecrawl/{path}), not a single path-templated token. An id that doesn’t resolve to a model this gateway supports answers this endpoint’s own 404 rather than the underlying provider’s.

Response headers

x-nativeport-request-idstringOptional

A gateway-assigned id for this call.

x-nativeport-providerstringOptional
x-nativeport-modelstringOptional

The canonical id that was looked up (same as the response body’s id).

Response

The looked-up model’s catalog entry.

idstringOptional

The canonical model id (same form accepted in a chat request’s model field).

object"model"Optional
createdintegerOptional
owned_bystringOptional

For a Hugging Face entry, the underlying HF repo’s owner segment — not necessarily the same string as provider.

providerenumOptional
Allowed values:
capabilitiesobjectOptional
supported_parameterslist of stringsOptional

The optional InferenceChatRequest fields this gateway accepts — uniform across every listed model, since the common set is provider-agnostic by construction.

pricingobjectOptional

Clean per-1M-token USD rates with the gateway’s 5.5% fee included, sourced from the same price tables each native provider route bills from.

Errors

401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error