Skip to main content
Retrieves an example query structure for a specific model. This provides a template that can be modified for your specific needs.

Usage

Arguments

  • model_id: Character string specifying the model ID (e.g., “gem-1-bulk”, “gem-1-sc”).
  • api_base_url: The base URL for the API server. When NULL (default), it is resolved from the SYNTHESIZE_API_BASE_URL environment variable, falling back to the production default (API_BASE_URL). Point this at a self-hosted model container to fetch its example query.
  • self_hosted: Logical; when TRUE, the request targets a self-hosted container and does not require an API key (one is only sent if set). When NULL (default), it is resolved from the SYNTHESIZE_SELF_HOSTED environment variable (truthy for 1/true/yes/on), defaulting to FALSE.

Returns

A list representing a valid query structure for the specified model.

Examples

Source

Generated from R/call_model_api.R and the package help files in man/.