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.
编程
runapi-sdk
试用Choose RunAPI SDK packages for application developers building web apps, backends, workers, or libraries. Use when the user asks to integrate RunAPI into code, pick JavaScript/Python/Ruby/Go/Java/PHP packages, or understand core SDK vs Provider Client packages. Do not use for one-off generation or agent-executed media tasks; use the RunAPI CLI or the relevant model skill instead.
它能做什么
Choose RunAPI SDK packages for application developers building web apps, backends, workers, or libraries. Use when the user asks to integrate RunAPI into code, pick JavaScript/Python/Ruby/Go/Java/PHP packages, or understand core SDK vs Provider Client packages. Do not use for one-off generation or agent-executed media tasks; use the RunAPI CLI or the relevant model skill instead.
技能文档
RunAPI SDK selection
Use this skill to help an application developer pick and wire up RunAPI SDK packages for JavaScript, Python, Ruby, Go, Java, or PHP.
Choose from the requested deliverable: a one-off artifact or result uses the RunAPI CLI; an app, backend, worker, library, or production code integration uses an SDK.
Critical: SDK Integration Runtime
When the user is integrating RunAPI into an app, backend, worker, library,
Rails service, Node service, Ruby codebase, Go service, webhook pipeline, or
production workflow, start here before CLI/API docs. First confirm the target
language and current Provider Client package, then inspect the package README or
source for install commands, client methods (create, get, run), response
shape, and error classes.
Never shell out to the runapi CLI as the production runtime integration
layer.
When NOT to use this skill
Do not use for one-off generation or agent-executed media tasks. If the user just wants an agent to create, edit, transform, or transcribe media once, use the RunAPI CLI skill instead: https://github.com/runapi-ai/cli-skill.
Reach for an SDK only when building a web app, backend, worker, library, or production codebase that calls RunAPI from its own code.
Core SDK vs Provider Client packages
- Core SDK — shared client primitives (auth, HTTP, polling, errors). Install
it transitively via a Provider Client package; depend on it directly only for custom
clients.
- JavaScript / TypeScript:
@runapi.ai/core - Python:
runapi-core - Ruby:
runapi-core - Go:
github.com/runapi-ai/core-sdk/go - Java:
ai.runapi:runapi-core - PHP:
runapi-ai/core
- JavaScript / TypeScript:
- Provider Client packages — one typed package per model line, built on the core SDK.
- JavaScript / TypeScript:
@runapi.ai/(e.g.@runapi.ai/suno) - Python:
runapi-(e.g.runapi-suno) - Ruby:
runapi-(e.g.runapi-suno) - Go:
github.com/runapi-ai/-sdk/go - Java:
ai.runapi:runapi-(e.g.ai.runapi:runapi-suno) - PHP:
runapi-ai/(e.g.runapi-ai/suno)
- JavaScript / TypeScript:
Install only the Provider Client packages an application actually uses; each pulls the core SDK as a dependency.
Generated file storage
RunAPI-generated file URLs are temporary. Download and store any images, videos, audio, or other generated files in your own durable storage within 7 days; do not treat returned file URLs as long-term assets.
Authentication
Keep the RunAPI API key in RUNAPI_API_KEY (or pass it to the client
constructor); never commit secrets.
References
- Browse every RunAPI model and SDK package: https://runapi.ai/models.md
相关技能
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.
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.
Generate or extend videos with Runway through RunAPI. Use the RunAPI CLI for one-off results and an SDK when integrating Runway into an app, backend, worker, library, or production codebase.
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.
Generate MP3 speech with OpenAI TTS through RunAPI. Use for one-off speech generation or application integration. Prefer the RunAPI CLI for one-off requests and the target-language SDK for production integration.