Developer API

Developer API

Integrate PolyMorph AI's powerful features into your own applications. Access our file detection and text-to-image generation capabilities with simple API calls.

Getting Started
PolyMorph AI offers server-side functions (Genkit flows) that you can call from your Next.js application. These functions are already part of this project and can be imported directly.

The core AI functionalities are provided as TypeScript functions within the src/ai/flows directory. You can import and use these functions in your server components or API routes.

Authentication (Conceptual)

For a production API, you would typically implement an authentication mechanism (e.g., API keys, OAuth). Currently, these flows are directly callable within the project. If exposing externally, ensure proper security measures.

Rate Limiting (Conceptual)

For public APIs, rate limiting is crucial to prevent abuse. This would be configured at your API gateway or server level.