v1

latestOpenAPI 3.0.32026-07-2659199427.5 KB
Fetch predictions

Get prediction results

Fetch the results of a prediction task by its ID.

get/ai/async-prediction/{PREDICTION_ID}

Response

OK

OR
OR
OR
OR
OR
OR

Example response

{
  "predictions": [
    {
      "faqPairs": [
        {
          "question": "What types of accounts are available for travelers looking to manage their finances?",
          "answer": "Travelers can choose from various account types such as debit accounts, credit accounts, and travel-specific credit cards, including airline-branded cards that offer travel rewards."
        },
        {
          "question": "What are the eligibility requirements for obtaining a travel-specific credit card?",
          "answer": "Eligibility for travel-specific credit cards typically requires a good credit score and a stable income. Specific requirements may vary by issuer."
        }
      ],
      "tokensUsed": {
        "promptTokens": 148,
        "completionTokens": 27,
        "totalTokens": 175
      }
    }
  ]
}