RunAPI Open AI API
The OpenAI API from RunAPI — 5 operation(s) for openai.
The OpenAI API from RunAPI — 5 operation(s) for openai.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.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.curl "https://apis.io/api/v1/apis/runapi:runapi-openai-api"
curl "https://apis.io/api/v1/apis?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
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. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: RunAPI Open AI API
version: v1
description: Create and retrieve AI media tasks, or use compatible LLM protocol endpoints.
servers:
- url: https://runapi.ai
security:
- bearerAuth: []
tags:
- name: Openai
paths:
/v1/chat/completions:
post:
tags:
- Openai
summary: OpenAI Chat Completions
operationId: protocol_operation_openai_chat_completions
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- model
- messages
properties:
model:
type: string
description: RunAPI model identifier returned by the compatible model catalog.
messages:
type: array
description: Conversation messages in OpenAI Chat Completions format.
items:
type: object
required:
- role
properties:
role:
type: string
content:
type:
- string
- array
additionalProperties: true
stream:
type:
- boolean
- 'null'
default: false
description: Return Chat Completions chunks as server-sent events.
max_tokens:
type:
- integer
- 'null'
description: Compatibility generation token limit retained for supported models; model support can vary.
temperature:
type:
- number
- 'null'
description: Sampling temperature; model support can vary.
top_p:
type:
- number
- 'null'
description: Nucleus sampling probability; model support can vary.
tools:
type: array
description: Tools the model may call.
additionalProperties: true
responses:
'200':
description: Success or Streaming
content:
application/json:
schema:
type: object
required:
- id
- object
- created
- model
- choices
properties:
id:
type: string
object:
type: string
const: chat.completion
created:
type: integer
model:
type: string
choices:
type: array
usage:
type: object
properties:
prompt_tokens:
type: integer
completion_tokens:
type: integer
total_tokens:
type: integer
additionalProperties: true
additionalProperties: true
text/event-stream:
schema:
type: object
required:
- id
- object
- choices
properties:
id:
type: string
object:
type: string
const: chat.completion.chunk
created:
type: integer
model:
type: string
choices:
type: array
usage:
oneOf:
- type: object
required:
- prompt_tokens
- completion_tokens
- total_tokens
properties:
prompt_tokens:
type: integer
completion_tokens:
type: integer
total_tokens:
type: integer
additionalProperties: true
- type: 'null'
additionalProperties: true
'400':
description: Invalid request
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
param:
type:
- string
- 'null'
code:
type:
- string
- 'null'
additionalProperties: true
additionalProperties: true
/v1/embeddings:
post:
tags:
- Openai
summary: OpenAI Embeddings
operationId: protocol_operation_openai_embeddings
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- model
- input
properties:
model:
type: string
description: RunAPI embedding model identifier.
input:
type:
- string
- array
description: Text or token arrays to embed.
encoding_format:
type: string
description: Format used for returned embedding vectors.
dimensions:
type: integer
description: Requested output vector dimensions for models that support it.
additionalProperties: true
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
required:
- object
- data
- model
- usage
properties:
object:
type: string
const: list
data:
type: array
model:
type: string
usage:
type: object
properties:
prompt_tokens:
type: integer
total_tokens:
type: integer
additionalProperties: true
additionalProperties: true
'400':
description: Invalid request
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
param:
type:
- string
- 'null'
code:
type:
- string
- 'null'
additionalProperties: true
additionalProperties: true
/v1/live/webrtc:
post:
tags:
- Openai
summary: OpenAI Live
operationId: protocol_operation_openai_live
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- model
- transport
- sdp
properties:
model:
type: string
description: RunAPI model identifier; Live currently supports gpt-live-1.
transport:
type: string
const: webrtc
description: WebRTC session negotiation transport.
sdp:
type: string
minLength: 1
description: Client SDP offer for the WebRTC session.
delegation:
type:
- object
- 'null'
description: Optional client or Responses delegation contract, in the provider's shape.
properties:
type:
type: string
enum:
- client
- responses
responses:
type: object
description: Backend settings for delegated work when type is responses.
properties:
model:
type: string
minLength: 1
description: Responses model that runs delegated work.
instructions:
type: string
description: Backend prompt for delegated work.
tools:
type: array
description: Hosted Responses tools the delegated call may use.
items:
type: object
required:
- type
properties:
type:
type: string
enum:
- web_search
- web_search_preview
- file_search
- computer_use_preview
additionalProperties: true
tool_choice:
type:
- string
- object
description: Which delegated tools the backend may use.
parallel_tool_calls:
type: boolean
description: Allow independent delegated tool calls in one turn.
max_output_tokens:
type: integer
description: Output token budget for the delegated response; at least 16.
service_tier:
type: string
description: Service tier requested for the delegated response.
reasoning:
type: object
additionalProperties: true
description: Reasoning settings for the delegated model.
text:
type: object
additionalProperties: true
description: Text output settings for the delegated response.
additionalProperties: true
tools:
type: array
description: Client-owned function tools when type is client.
items:
type: object
required:
- type
properties:
type:
type: string
const: function
additionalProperties: true
additionalProperties: true
additionalProperties: true
responses:
'201':
description: Success
content:
application/json:
schema:
type: object
required:
- session
- transport
properties:
session:
type: object
additionalProperties: true
transport:
type: object
additionalProperties: true
additionalProperties: true
'400':
description: Invalid request
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
param:
type:
- string
- 'null'
code:
type:
- string
- 'null'
additionalProperties: true
additionalProperties: true
/v1/moderations:
post:
tags:
- Openai
summary: OpenAI Moderations
operationId: protocol_operation_openai_moderations
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- input
properties:
model:
type: string
description: RunAPI moderation model identifier; defaults to omni-moderation-latest.
input:
type:
- string
- array
description: Text or mixed text and image content to classify.
items:
oneOf:
- type: string
- type: object
additionalProperties: true
additionalProperties: true
responses:
'200':
description: Success
content:
application/json:
schema:
type: object
required:
- id
- model
- results
properties:
id:
type: string
minLength: 1
model:
type: string
minLength: 1
results:
type: array
minItems: 1
items:
type: object
required:
- flagged
- categories
- category_scores
properties:
flagged:
type: boolean
categories:
type: object
additionalProperties: true
category_scores:
type: object
additionalProperties: true
category_applied_input_types:
type: object
additionalProperties: true
additionalProperties: true
additionalProperties: true
'400':
description: Invalid request
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
param:
type:
- string
- 'null'
code:
type:
- string
- 'null'
additionalProperties: true
additionalProperties: true
/v1/responses:
post:
tags:
- Openai
summary: OpenAI Responses
operationId: protocol_operation_openai_responses
security:
- bearerAuth: []
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- model
properties:
model:
type: string
description: RunAPI model identifier returned by the compatible model catalog.
input:
type:
- string
- array
description: Text, message items, or tool results provided to the model.
instructions:
type:
- string
- 'null'
description: System or developer instructions for this response.
max_output_tokens:
type:
- integer
- 'null'
description: Maximum number of output tokens, including visible and reasoning tokens.
stream:
type:
- boolean
- 'null'
default: false
description: Return typed Responses events as server-sent events.
tools:
type: array
description: Tools the model may call.
moderation:
type:
- object
- 'null'
description: Return independent moderation signals for the current input and complete output.
properties:
model:
type: string
enum:
- omni-moderation-latest
policy:
type:
- object
- 'null'
properties:
input:
type:
- object
- 'null'
properties:
mode:
type: string
enum:
- score
- block
additionalProperties: true
output:
type:
- object
- 'null'
properties:
mode:
type: string
enum:
- score
- block
additionalProperties: true
additionalProperties: true
additionalProperties: true
additionalProperties: true
responses:
'200':
description: Success or Streaming
content:
application/json:
schema:
type: object
required:
- id
- object
- status
- model
- output
properties:
id:
type: string
object:
type: string
const: response
status:
type: string
model:
type: string
output:
type: array
usage:
type: object
properties:
input_tokens:
type: integer
output_tokens:
type: integer
total_tokens:
type: integer
additionalProperties: true
moderation:
type: object
properties:
input:
oneOf:
- type: object
required:
- type
- model
- flagged
- categories
- category_scores
- category_applied_input_types
properties:
type:
type: string
const: moderation_result
model:
type: string
const: omni-moderation-latest
flagged:
type: boolean
categories:
type: object
additionalProperties: true
category_scores:
type: object
additionalProperties: true
category_applied_input_types:
type: object
additionalProperties: true
additionalProperties: true
- type: object
required:
- type
- code
- message
properties:
type:
type: string
const: error
code:
type: string
message:
type: string
additionalProperties: true
output:
oneOf:
- type: object
required:
- type
- model
- flagged
- categories
- category_scores
- category_applied_input_types
properties:
type:
type: string
const: moderation_result
model:
type: string
const: omni-moderation-latest
flagged:
type: boolean
categories:
type: object
additionalProperties: true
category_scores:
type: object
additionalProperties: true
category_applied_input_types:
type: object
additionalProperties: true
additionalProperties: true
- type: object
required:
- type
- code
- message
properties:
type:
type: string
const: error
code:
type: string
message:
type: string
additionalProperties: true
additionalProperties: true
additionalProperties: true
text/event-stream:
schema:
oneOf:
- type: object
required:
- type
- item_id
- output_index
- content_index
- delta
properties:
type:
type: string
const: response.output_text.delta
item_id:
type: string
output_index:
type: integer
content_index:
type: integer
delta:
type: string
additionalProperties: true
- type: object
required:
- type
- response
properties:
type:
type: string
const: response.completed
response:
type: object
properties:
id:
type: string
object:
type: string
const: response
status:
type: string
model:
type: string
output:
type: array
usage:
type: object
properties:
input_tokens:
type: integer
output_tokens:
type: integer
total_tokens:
type: integer
additionalProperties: true
moderation:
type: object
properties:
input:
oneOf:
- type: object
required:
- type
- model
- flagged
- categories
- category_scores
- category_applied_input_types
properties:
type:
type: string
const: moderation_result
model:
type: string
const: omni-moderation-latest
flagged:
type: boolean
categories:
type: object
additionalProperties: true
category_scores:
type: object
additionalProperties: true
category_applied_input_types:
type: object
additionalProperties: true
additionalProperties: true
- type: object
required:
- type
- code
- message
properties:
type:
type: string
const: error
code:
type: string
message:
type: string
additionalProperties: true
output:
oneOf:
- type: object
required:
- type
- model
- flagged
- categories
- category_scores
- category_applied_input_types
properties:
type:
type: string
const: moderation_result
model:
type: string
const: omni-moderation-latest
flagged:
type: boolean
categories:
type: object
additionalProperties: true
category_scores:
type: object
additionalProperties: true
category_applied_input_types:
type: object
additionalProperties: true
additionalProperties: true
- type: object
required:
- type
- code
- message
properties:
type:
type: string
const: error
code:
type: string
message:
type: string
additionalProperties: true
additionalProperties: true
additionalProperties: true
additionalProperties: true
'400':
description: Invalid request
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: object
properties:
message:
type: string
type:
type: string
param:
type:
- string
- 'null'
code:
type:
- string
- 'null'
additionalProperties: true
additionalProperties: true
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: API token