Openly licensed image candidates

Image Search

agents.images.image_search

Searches Openverse and, for organism searches, iNaturalist for Creative Commons images. It returns image candidates with source, license, attribution, and creator fields, plus taxonomic fields for iNaturalist results.

POST /v1/agents/agents.images.image_search/invokeagents:invoke

When to use it

Good fit

  • Finding openly licensed images for a concept, product, building, or organism.
  • Collecting organism photos with scientific name and taxon ID from iNaturalist.
  • Building image pickers that show license and attribution beside each candidate.

Use something else when

  • Filling a known LivingSystem gallery. Use the image collector.
  • Choosing one image for a particular display. Use the image selector.
  • Confirming that an image shows the requested subject. Results are unreviewed candidates.

Use when a product needs candidate images for a subject, concept, or organism before review, selection, or display.

Required inputs

inputs.query
What to search for, such as a species name, concept, or subject.

Optional inputs

inputs.source
all, openverse, or inaturalist. Defaults to all.
inputs.search_type
general, organism, architecture, or product. Defaults to general. iNaturalist is searched only when this is organism.
inputs.license_type
commercial (CC0, CC-BY, CC-BY-SA) or any. Defaults to commercial.
inputs.limit
Maximum results per source, 1 to 50. Defaults to 10.
configuration.metadata
Your reference for the request.
configuration.webhook_url
Optional HTTPS callback for terminal job events.

What comes back

The completed job result is structured for integration. Preserve citations, warnings, confidence fields, and source context when the agent returns them.

Representative output fields

job_id
Job identifier for GET /v1/jobs/{job_id}.
status
Queued, running, completed, failed, or canceled job state.
poll_url
Polling URL returned when the job is accepted.
result.success
Whether the search ran.
result.query
The search query used.
result.sources_searched
Sources that were queried, such as openverse and inaturalist.
result.total_results
Number of image candidates returned.
result.images
Image candidates with source, license, and attribution fields.
result.error
Error message when success is false.
result.charge_usd
Customer-visible charge for the completed call when billing applies.

Image candidate fields

images[].source
openverse or inaturalist.
images[].url
Full-resolution image URL at the provider.
images[].thumbnail_url
Thumbnail URL when available.
images[].title
Image title when available.
images[].license
License label, such as CC BY 4.0.
images[].license_url
License statement URL.
images[].attribution
Attribution text when available.
images[].creator
Creator or photographer when available.
images[].width / height
Pixel dimensions when available.
images[].scientific_name / common_name / taxon_id
Taxonomic fields for iNaturalist results.

How output is produced

  • Accepts the invocation as an asynchronous job.
  • Chooses sources from source and search_type. Organism searches query iNaturalist first, then Openverse.
  • Applies the license filter and the per-source limit at each provider.
  • Returns the combined candidates with their license and attribution fields.

Trust and caution

  • Results are search candidates. They are not checked for species identity or suitability.
  • If one provider fails, the search continues with the other, so a short or empty list can reflect provider availability.
  • Keep license, license_url, creator, and attribution with any image you display.

Runtime

The invocation returns a job ID. Poll the job for the completed search result.

Cost behavior

Use charge_usd from the completed job for customer accounting.

Billing notes

  • Use charge_usd from the completed job for customer accounting.
Representative input
{
  "inputs": {
    "query": "Monarch butterfly",
    "search_type": "organism",
    "license_type": "commercial",
    "limit": 5
  }
}
Queued response
{
  "job_id": "job_4c8e1d2a",
  "status": "queued",
  "agent_id": "agents.images.image_search",
  "poll_url": "/v1/jobs/job_4c8e1d2a"
}
Representative completed result
{
  "job_id": "job_4c8e1d2a",
  "status": "completed",
  "result": {
    "success": true,
    "query": "Monarch butterfly",
    "sources_searched": ["inaturalist", "openverse"],
    "total_results": 1,
    "images": [
      {
        "source": "inaturalist",
        "url": "https://example.com/monarch.jpg",
        "thumbnail_url": "https://example.com/monarch-small.jpg",
        "license": "CC BY 4.0",
        "license_url": "https://creativecommons.org/licenses/by/4.0/",
        "attribution": "(c) Example Observer, some rights reserved (CC BY)",
        "creator": "Example Observer",
        "scientific_name": "Danaus plexippus",
        "common_name": "Monarch",
        "taxon_id": "48662"
      }
    ],
    "error": null
  }
}

Errors and retries

Common failures

  • Missing inputs.query.
  • Unsupported inputs.source, inputs.search_type, or inputs.license_type.
  • inputs.limit must be 1 to 50.
  • 401 or 403: the key is invalid or lacks agents:invoke.
  • 402: the organization cannot fund the requested job.
  • 429: honor Retry-After before submitting again.
  • result.success false: the search could not complete. result.error explains why.

Retry guidance

  • Poll GET /v1/jobs/{job_id} until the job is terminal.
  • If the list is short, retry with a more specific query or a different search_type.

Composition ideas

Organism photos

Search with search_type organism, then show iNaturalist results with their taxonomic fields.

Gallery coverage

Use the image collector when a known LivingSystem needs published images.

Application fit

  • Image pickers for lessons, articles, and presentations.
  • Concept boards that need openly licensed reference images.