Download the PHP package runapi-ai/core without Composer
On this page you can find all versions of the php package runapi-ai/core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package core
RunAPI Core PHP SDK
The RunAPI Core PHP SDK provides shared authentication, PSR HTTP transport, retry, polling, typed errors, response objects, Files, Uploads, and account primitives for RunAPI PHP packages. Application code should normally install a concrete model package such as runapi-ai/wan; install runapi-ai/core directly only when building shared PHP SDK tooling.
Install
Requirements
- PHP 8.2 or newer
- Composer
- A PSR-18 / PSR-17 / PSR-7 compatible HTTP stack
The package includes a Guzzle-based default HTTP stack and also accepts custom PSR implementations.
Request Identifiers And Safe Task Creation
Task-creation calls accept an optional opaque Idempotency-Key up to 512 characters. Generate one value per logical task and reuse it only with identical input after an unknown result. Reusing the value with different input returns 409 Conflict; do not derive it from X-Client-Request-Id.
Recovering Interrupted Requests
Normal run() calls wait for and return the endpoint's terminal response model.
If a lower-level request is interrupted after RunAPI accepted it, persist the
opaque Task Result URL from the response and use subscribe() to recover the
result while respecting the server-supplied Retry-After delay.
Persistent Files And Multipart Uploads
Every Provider Client exposes $client->files and $client->uploads. The existing $client->files->create() method still returns a temporary URL.
Use list(), retrieve(), and deleteFile() for the remaining File lifecycle. See https://runapi.ai/docs/resources/files for limits and REST examples.
Live Pricing
Every Provider Client exposes a typed $client->pricing resource. Read the current schedule or request a reservation estimate before creating a task; schedules work without an API key, while quotes that reference an account-owned source task use the configured API key.
- Live pricing API: https://runapi.ai/models
Links
- SDK docs: https://runapi.ai/docs/resources/sdks
- Model catalog: https://runapi.ai/models
- GitHub repository: https://github.com/runapi-ai/core-php
- Multi-language SDK repository: https://github.com/runapi-ai/core-sdk
License
Licensed under the Apache License, Version 2.0.
All versions of core with dependencies
guzzlehttp/guzzle Version ^7.10
guzzlehttp/psr7 Version ^2.8
psr/http-client Version ^1.0
psr/http-factory Version ^1.1
psr/http-message Version ^1.1 || ^2.0