Search by

runapi-ai / nemotron

runapi

RunAPI Nemotron Composer package for PHP applications

v0.1.1 2026-11-30 17:43 UTC

This package is auto-updated.

Last update: 2026-11-30 17:58:06 UTC


README

Packagist License

The Nemotron PHP SDK is the language-specific package for NVIDIA Nemotron 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 nemotron-php split repository. For model details, use https://runapi.ai/models/nemotron; for API reference, use https://runapi.ai/docs/api/nemotron/speech-to-text; for SDK docs, use https://runapi.ai/docs/resources/sdks.

Install

composer require runapi-ai/nemotron

Quick start

<?php

require __DIR__ . "/vendor/autoload.php";

use RunApi\Nemotron\NemotronClient;

$client = new NemotronClient(); // reads RUNAPI_API_KEY

$task = $client->speechToText->create([
    'model' => 'nemotron-3.5-transcribe',
    'source_audio_url' => 'https://cdn.runapi.ai/public/samples/voice.mp3',
    'timestamps' => false,
]);

$status = $client->speechToText->get($task->id);

$result = $client->speechToText->run([
    'model' => 'nemotron-3.5-transcribe',
    'source_audio_url' => 'https://cdn.runapi.ai/public/samples/voice.mp3',
    'timestamps' => true,
]);

echo $result->text . PHP_EOL;
echo $result->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 result JSON URLs are temporary. Download and store generated transcript files in your own durable storage before expires_at; do not treat returned URLs as long-term assets.

Language notes

Pass request parameters as associative arrays with snake_case keys. The available resource is speechToText. Omit target_language when timestamps is true. Keep RUNAPI_API_KEY in the environment or your secret manager; never commit API keys or callback secrets.

Links

License

Licensed under the Apache License, Version 2.0.