Documentation

Client

TopLevel

Methods

search(, ):
get/search

Search for public models, collections, and docs using a text query.

For models, the response includes all model data, plus a new metadata object with the following fields:

  • generated_description: A longer and more detailed AI-generated description of the model
  • tags: An array of tags for the model
  • score: A score for the model's relevance to the search query

Example cURL request:

curl -s \
  -H "Authorization: Bearer $REPLICATE_API_TOKEN" \
  "https://api.replicate.com/v1/search?query=nano+banana"

Note: This search API is currently in beta and may change in future versions.

Parameters
query: string

The search query string

limit?: number
(maximum: 50, minimum: 1)

Maximum number of model results to return (1-50, defaults to 20)

Returns
SearchResponse{
collections: Array<>

Array of collections that match the search query

models: Array<>

Array of models that match the search query, each containing model data and extra metadata

pages: Array<>

Array of Replicate documentation pages that match the search query

query: string

The search term that was evaluated

Request example
200Example