xpay✦ pay-per-use Tool icon

xpay✦ pay-per-use Tool

Discover and execute services from xpay✦ marketplace — use as a tool for AI Agents

xpay✦ pay-per-use Tool

AI-generated

Summary

Search for AI services in the xpay marketplace or execute a specific AI service using its slug. Use the 'discover' action with a search query and optional filters to find services, or the 'run' action with a serviceSlug and inputs to execute a chosen service and receive JSON-formatted results.

Inputs

  • action (required) — Specify 'discover' to search services or 'run' to execute a service.
  • searchQuery — Query string to find services via the 'discover' action.
  • serviceSlug — Identifier of the service to execute, required for 'run' action.
  • inputs — Key-value pairs of input parameters for the service execution.
  • modelId — Override the default AI model used for service execution.

Output shape

a single JSON-formatted string describing either discovered services or the execution results

Output JSON differs based on action: 'discover' returns a list of services with details including slug, name, description, type, pricing, verification, and tags; 'run' returns execution status, output, cost, duration, and errors if any.

Examples

Example 1: Discover AI services for a given topic

Set action to 'discover' and provide a searchQuery to retrieve a list of matching services filtered by verification status and limited by count.

Example 2: Run a specific AI service

Set action to 'run' with a serviceSlug from discovery results, provide required input parameters and optionally override the model or adjust execution options such as temperature and maxTokens.

Links

Discussion