The OmniHuman PHP SDK is the language-specific package for OmniHuman on RunAPI. Use this package when your application needs Composer installs, associative-array request bodies, task status lookup, and consistent RunAPI errors in PHP.
This README is the PHP package guide for the public omnihuman-php split
repository. For model details, use https://runapi.ai/models/omnihuman; for API
reference, use https://runapi.ai/docs#omnihuman; for SDK docs, use
https://runapi.ai/docs#sdk-omnihuman.
composer require runapi-ai/omnihuman<?php
require __DIR__ . "/vendor/autoload.php";
use RunApi\Omnihuman\OmnihumanClient;
$client = new OmnihumanClient(); // reads RUNAPI_API_KEY
$task = $client->audioToVideo->create([
'model' => 'omnihuman-1.5',
'enable_fast_mode' => true,
'mask_urls' => ['https://cdn.runapi.ai/public/samples/mask.png'],
'output_resolution' => '720p',
'prompt' => 'A precise product render on white marble',
'seed' => 1,
'source_audio_url' => 'https://cdn.runapi.ai/public/samples/voice.mp3',
'source_image_url' => 'https://cdn.runapi.ai/public/samples/image.jpg',
]);
$status = $client->audioToVideo->get($task->id);
$result = $client->audioToVideo->run([
'model' => 'omnihuman-1.5',
'enable_fast_mode' => true,
'mask_urls' => ['https://cdn.runapi.ai/public/samples/mask.png'],
'output_resolution' => '720p',
'prompt' => 'A serene mountain lake at dawn',
'seed' => 1,
'source_audio_url' => 'https://cdn.runapi.ai/public/samples/voice.mp3',
'source_image_url' => 'https://cdn.runapi.ai/public/samples/image.jpg',
]);
echo $result->videos[0]->url . PHP_EOL;Use create() to submit a task and return quickly, get() to fetch the latest
task state, and run() when a script should create and poll until completion.
In web request handlers, prefer create() plus webhook or later get()
polling so a worker is not held open.
RunAPI-generated file URLs are temporary. Download and store generated files in your own durable storage within the retention window; do not treat returned URLs as long-term assets.
Pass request parameters as associative arrays with snake_case keys. The
available resources are audioToVideo, humanIdentification, subjectDetection. Keep RUNAPI_API_KEY in the environment
or your secret manager; never commit API keys or callback secrets.
- Model page: https://runapi.ai/models/omnihuman
- SDK docs: https://runapi.ai/docs#sdk-omnihuman
- Product docs: https://runapi.ai/docs#omnihuman
- Pricing and rate limits: https://runapi.ai/models/omnihuman/1.5
- Full catalog: https://runapi.ai/models
- GitHub repository: https://github.com/runapi-ai/omnihuman-php
- Multi-language SDK repository: https://github.com/runapi-ai/omnihuman-sdk
Licensed under the Apache License, Version 2.0.