import { APIResource } from "../../core/resource.js"; import { APIPromise } from "../../core/api-promise.js"; import { RequestOptions } from "../../internal/request-options.js"; export declare class Examples extends APIResource { /** * List * [example predictions](https://replicate.com/docs/topics/models/publish-a-model#what-are-examples) * made using the model. These are predictions that were saved by the model author * as illustrative examples of the model's capabilities. * * If you want all the examples for a model, use this operation. * * If you just want the model's default example, you can use the * [`models.get`](#models.get) operation instead, which includes a * `default_example` object. * * Example cURL request: * * ```console * curl -s \ * -H "Authorization: Bearer $REPLICATE_API_TOKEN" \ * https://api.replicate.com/v1/models/replicate/hello-world/examples * ``` * * The response will be a pagination object containing a list of example * predictions: * * ```json * { * "next": "https://api.replicate.com/v1/models/replicate/hello-world/examples?cursor=...", * "previous": "https://api.replicate.com/v1/models/replicate/hello-world/examples?cursor=...", * "results": [...] * } * ``` * * Each item in the `results` list is a [prediction object](#predictions.get). * * @example * ```ts * await replicate.models.examples.list({ * model_owner: 'model_owner', * model_name: 'model_name', * }); * ``` */ list(params: ExampleListParams, options?: RequestOptions): APIPromise; } export interface ExampleListParams { /** * The name of the user or organization that owns the model. */ model_owner: string; /** * The name of the model. */ model_name: string; } export declare namespace Examples { export { type ExampleListParams as ExampleListParams }; } //# sourceMappingURL=examples.d.ts.map