Memory

Call GPT generation and OpenAI text embedding models through RunAPI using OpenAI-compatible clients. Use for chat, Responses, embeddings, streaming, tools, vision, or an existing compatibility client that needs the conditional reference.

What it does

Use OpenAI-compatible clients at as the primary protocol.

The skill document

GPT on RunAPI

Use OpenAI-compatible clients at https://runapi.ai/v1 as the primary protocol.

Primary protocol recipe

Authenticate

Set OPENAI_API_KEY to a RunAPI API key and OPENAI_BASE_URL to https://runapi.ai/v1.

Send request

from openai import OpenAI
client = OpenAI(api_key="YOUR_RUNAPI_TOKEN", base_url="https://runapi.ai/v1")
response = client.responses.create(model="gpt-5.5", input="Summarize this review.")
print(response.output_text)
print(response.usage)

Use client.chat.completions.create for gpt-5.2, which does not accept Responses. Use Responses for gpt-5.*-pro. Use client.embeddings.create only with the three embedding model IDs below. For streaming Responses, set stream=True and consume through one usage-bearing response.completed followed by [DONE].

For gpt-5.6-luna, gpt-5.6-sol, and gpt-5.6-terra, start with text input, sync or SSE transport, parameterized custom functions, and automatic prompt caching. gpt-5.3-codex-spark has the same verified subset with parameterless custom functions. Add reasoning controls, multimodal input, hosted tools, or continuation state only when the current RunAPI contract verifies that shape.

Verify result

Responses require final output, response.completed, and usage. Chat requires final assistant content, finish_reason, and usage. Embeddings require one numeric vector per input and response usage.

Stop boundaries

Correct a rejected shape once using the current error and endpoint contract. Retry transport once only before any response or Usage and when replay is safe. Record a terminal error and stop without changing model, endpoint, or protocol. Keep embedding models on /v1/embeddings.

Compatibility protocols

Load compatibility protocols only when an existing client requires Anthropic Messages or Gemini contents.

Supported models

Model IDUse when
gpt-5.5Latest general model
gpt-5.5-proReasoning-heavy
gpt-5.4Production default
gpt-5.4-miniCost-optimized
gpt-5.4-nanoSmallest, fastest
gpt-5.4-proReasoning
gpt-5.3-codexCode generation
gpt-5.3-codex-sparkFaster Codex variant; text and parameterless functions in the consistently available Responses subset
gpt-5.2Cost-effective
gpt-5.6-lunaText and parameterized functions in the consistently available Responses subset
gpt-5.6-solText and parameterized functions in the consistently available Responses subset
gpt-5.6-terraText and parameterized functions in the consistently available Responses subset
text-embedding-3-largeHigh-capacity vectors
text-embedding-3-smallEfficient vectors
text-embedding-ada-002Legacy-compatible vectors

References

Related skills

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai22 installs8 stars

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants4.3k installs296 stars

Run Git operations — commits, branches, merges, rebases, conflict resolution, and recovery — with safety rules enforced.

by Iván535 installs31 stars

More from runapi-ai

Browse all skills

Generate, extend, and transform music or compose lyrics with Suno models via RunAPI's CLI or SDK.

by runapi-ai11 installs

Run one-off RunAPI service commands from the terminal with JSON requests and inspect results synchronously or via polling.

by runapi-ai11 installs

Generate and edit images with GPT Image through RunAPI. Use when the user asks an agent to create, edit, or transform images with GPT Image. Default to the RunAPI CLI for one-off generation; use SDKs only when the user is integrating RunAPI into an app or backend.

by runapi-ai13 installs

Generate speech, dialogue, and sound with ElevenLabs through RunAPI. Use when the user asks an agent to create speech, dialogue, or sound effects, or transcribe audio with ElevenLabs. Default to the RunAPI CLI for one-off generation; use SDKs only when the user is integrating RunAPI into an app or backend.

by runapi-ai12 installs

Generate and edit images with Flux Kontext through RunAPI. Use when the user asks an agent to create, edit, or transform images with Flux Kontext. Default to the RunAPI CLI for one-off generation; use SDKs only when the user is integrating RunAPI into an app or backend.

by runapi-ai12 installs

Generate and edit images with GPT Image 2 through RunAPI. Use when the user asks an agent to create, edit, or transform images with GPT Image 2. Default to the RunAPI CLI for one-off generation; use SDKs only when the user is integrating RunAPI into an app or backend.

by runapi-ai12 installs