Install
openclaw skills install @runapi-ai/runapi-gemini-omniCreate Gemini Omni voice resources, character resources, and Flash Preview or multimodal text-to-video tasks through RunAPI. Use when the user asks an agent to create or manage Gemini Omni audio voices, character resources, or video. Default to the RunAPI CLI for one-off calls; use SDKs only when integrating RunAPI into an app or backend.
openclaw skills install @runapi-ai/runapi-gemini-omnigemini-omni service in the runapi CLI. If the installed command catalog does not list it, stop and report the missing service instead of inventing a command.Authenticate, then inspect the installed command catalog and the selected operation's current contract:
runapi auth status > auth.json
jq -e '.authenticated == true' auth.json
runapi gemini-omni --help
runapi gemini-omni <operation> --help
curl --fail --location https://runapi.ai/docs/api/gemini-omni/<operation>.md --output contract.md
If authentication is false, stop before submitting. Ask the user to provide a valid RUNAPI_API_KEY, or import a user-provided key from stdin with runapi auth import-token --token -; use interactive browser login only when the user explicitly requests it. Choose <operation> only from service help. Treat command help as authoritative for the installed operation, model, and top-level field roster. Treat its API Reference as authoritative for the complete request schema, nested fields, conditional rules, task behavior, and response variants. If the two surfaces disagree, stop and report the contract mismatch instead of guessing.
Create request.json as valid JSON using only fields accepted by the discovered operation contract. For the chosen model and values, evaluate every applicable conditional rule as a set: satisfy every required field, omit every forbidden field, and stop on unresolved contradictions.
Traverse nested objects and arrays before execution. Close every relationship stated by the discovered contract, including uniqueness constraints and cross-references between nested values.
For a discovered local media input, including file-typed fields and top-level media URL fields, put an agent-readable local file path directly in request.json. The CLI consumes file fields as declared and uploads local paths in top-level media URL fields. Use runapi files create only when the user needs a reusable URL, provides Base64, or the discovered contract explicitly requires a separate upload.
Semantic invariants:
create-character, use reference_image_url for the required portrait and body_reference_image_url only for an optional full-body reference. The returned character.images keeps that same order.text-to-video request, count a character created with both references as two of the seven available reference units.Validate the file before sending it:
jq empty request.json
Use the branch matching the selected operation's discovered task behavior. Submit exactly once.
For an asynchronous operation:
runapi gemini-omni <operation> --async --input-file request.json > task.json
task_id="$(jq -er '.id' task.json)"
runapi wait "$task_id" --service gemini-omni --action <operation> > result.json
For a synchronous operation:
runapi gemini-omni <operation> --input-file request.json > result.out
Do not use --async or runapi wait for a synchronous operation. For an asynchronous operation, stop after validating task.json only when the user explicitly asks for background execution, polling, or webhook integration; report the task id without claiming the deliverable is complete.
A success status is not the deliverable. Read and validate the complete response according to the discovered result contract. Preserve the complete non-media result in the exact requested format, including JSON, text, SRT, or VTT.
For every requested media deliverable listed anywhere in the response, download all of them rather than returning only the first URL. Before downloading, derive its expected MIME type or family from response metadata when present, then the selected output format, then an unambiguous result field such as videos, images, or audios in the API Reference. The Catalog-declared fallback families for this skill are audio/* or video/*. Stop only when no single expected type or family can be established from those sources.
For every downloaded file, require both a non-empty file and the expected MIME type or family:
curl --fail --location <deliverable-url> --output <downloaded-file>
for file in <downloaded-files>; do
expected_mime=<expected-MIME-or-family-pattern-for-this-file>
test -s "$file"
[[ "$(file --brief --mime-type "$file")" == $expected_mime ]]
done
Do not report completion when any requested deliverable is missing, empty, or has an unexpected MIME type. Record Skill Conformance separately from Task Outcome so a service failure does not hide whether this recipe was followed.
task.json exists, preserve the error and rerun runapi wait for that same task at most once. Never submit a replacement task.Use this route only for application or production-code integration. Open the current RunAPI SDK reference below, select the package for the target language and Gemini Omni, and confirm its install command, client methods, request types, response types, and error classes before coding. Build the request from the same discovered product contract and apply the same deliverable verification and stop rules. Do not invoke runapi as a subprocess from production code.
gemini-omni-audio: https://runapi.ai/models/gemini-omni/audio.mdgemini-omni-character: https://runapi.ai/models/gemini-omni/character.mdgemini-omni-flash-1-1: https://runapi.ai/models/gemini-omni/flash-1-1.mdgemini-omni-flash-preview: https://runapi.ai/models/gemini-omni/flash-preview.mdgemini-omni-text-to-video: https://runapi.ai/models/gemini-omni/text-to-video.md