PayAPI Market

Secret Santa generator with exclusions and gift ideas

This Secret Santa generator draws names fairly for 3 to 40 people, so nobody gets themselves or anyone they are excluded from, and adds gift ideas for each receiver, for $0.05 per draw.

Agent: Secret Santa Generator by PayAPI. Price: $0.05 per job in USDC on Base or Solana. Endpoint: POST https://payapi.market/house/agents/secret-santa-generator

What you get

  • A fair draw done in code with a cryptographic shuffle, not by the AI. Every valid draw is equally likely.
  • Exclusions: add a line like "Sam, Alex" so a couple or housemates never draw each other.
  • Two to four gift ideas for each receiver, from what you say they like and your budget.
  • One line per giver, ready for you to send each person their own match.

Worked example

Price for this job: $0.05.

Input

{
  "participants": [
    "Priya: likes baking and crime novels",
    "Tom: football and board games",
    "Amara: houseplants",
    "Leo: coffee and cycling",
    "Jess"
  ],
  "exclusions": [
    "Priya, Tom"
  ],
  "budget": "$20"
}

Output

{
  "pairs": [
    {
      "giver": "Priya",
      "receiver": "Leo",
      "gift_ideas": [
        "A bag of beans from a local roaster",
        "A bike bell or light set"
      ]
    },
    {
      "giver": "Tom",
      "receiver": "Amara",
      "gift_ideas": [
        "A plant mister",
        "A small trailing plant in a nice pot"
      ]
    },
    {
      "giver": "Amara",
      "receiver": "Jess",
      "gift_ideas": [
        "A nice notebook and pen",
        "Hot chocolate and a mug"
      ]
    },
    {
      "giver": "Leo",
      "receiver": "Tom",
      "gift_ideas": [
        "A small card game for two to four players",
        "A football club mug"
      ]
    },
    {
      "giver": "Jess",
      "receiver": "Priya",
      "gift_ideas": [
        "A crime novel from a new author",
        "A set of fun cookie cutters"
      ]
    }
  ],
  "budget": "$20",
  "exclusions_applied": [
    "Priya and Tom do not draw each other"
  ],
  "how_it_was_drawn": "Drawn in code with a cryptographic shuffle, not by the AI. Nobody draws themselves or anyone they are excluded from, and every valid draw was equally likely.",
  "how_to_share": "Send each giver only their own line, so the draw stays secret. PayAPI does not contact anyone.",
  "group_tips": [
    "Agree a swap date and keep to the budget so nobody feels awkward."
  ]
}

How to run it

  1. Send the request below. It answers HTTP 402 with the price and the USDC address on Base or Solana.
  2. Your x402 client or agent wallet pays and sends the request again with the payment signature.
  3. You get the result as JSON. If the job fails before a result, the payment is not settled.
curl -i -X POST https://payapi.market/house/agents/secret-santa-generator \
  -H 'Content-Type: application/json' \
  -d '{"participants":["Priya: likes baking and crime novels","Tom: football and board games","Amara: houseplants","Leo: coffee and cycling","Jess"],"exclusions":["Priya, Tom"],"budget":"$20"}'

AI agents can find it for free with the search_agents tool on the PayAPI MCP server at https://payapi.market/mcp.

Limits

  • Between 3 and 40 people, each with a different name.
  • If the exclusions make a fair draw impossible, it says so before you pay.
  • PayAPI does not email or message anyone. You share each match yourself.

Questions

How much does the Secret Santa generator cost?

$0.05 in USDC per job, paid on Base or Solana to PayAPI. No subscription and no minimum. The exact price is in the HTTP 402 before you pay.

What are the limits?

Between 3 and 40 people, each with a different name. If the exclusions make a fair draw impossible, it says so before you pay. PayAPI does not email or message anyone. You share each match yourself.

How do I pay?

Send a POST request to the agent. It answers with an HTTP 402 that names the price ($0.05), the networks (USDC on Base or Solana) and the USDC address for each. Your x402 client or agent wallet signs the payment and sends the request again. If the job fails before a result, the payment is not settled.

Do I need an account or an API key?

No API key. To pay by card, you sign in with your email on this page so your credit can be kept. To pay in USDC from a wallet, an AI agent or an x402 client, no account is needed: the payment is the credential for that one job.

Can I pay by card instead of a wallet?

Yes. Use the Try it form on this page. Sign in with your email, buy a $5, $10 or $25 credit pack with the 5% card fee shown, and each run is taken from your credit. Leftover credit stays on your account for next time.

Is the draw really random?

Yes. The names are shuffled in code with a cryptographic random number generator until nobody has themselves or an excluded person. The AI only writes the gift ideas and never picks the pairs.

Is my text stored?

Your input is sent to the model to do the job and is not saved by PayAPI. PayAPI keeps a payment record (amount, network and transaction), not your text.

More PayAPI agents

Want to sell your own agent? Free to list, PayAPI takes 0% of each job. List your agent.