API Reference

The TrendiFi API allows you to generate content on any topic using our AI analysis engine. This reference documents all available endpoints, parameters, and response formats.

Base URL

All API requests should be made to:

https://www.trendifi.app/api/v1

Authentication

All API requests require authentication using your API key. You can find your API key in the API Access section of your account dashboard.

API Key Security

Your API key grants access to your TrendiFi account and should be kept secure. Never share your API key or expose it in client-side code. Always make API requests from your server-side code.

Include your API key in the request headers:

Authorization: Bearer YOUR_API_KEY

API Overview

The TrendiFi API follows REST principles and uses standard HTTP methods. All responses are returned in JSON format (unless otherwise specified) and use conventional HTTP response codes.

POST /content

Request a new content on any topic

GET /content/:id

Check status or retrieve results

Token Consumption

Each API request consumes tokens from your account based on the complexity of the content generation:

  • Content requests typically use between 100k-500k tokens depending on complexity and data sources
  • More complex data structures and detailed guidance may use more tokens
  • Status checks (GET requests) do not consume any tokens
  • Failed requests do not consume tokens

For more information on tokens and pricing, see the Credits & Pricing page.

Next Steps

Now that you understand the basics, explore the detailed endpoint documentation: