Skip to main content
Version: 1.11.0-beta

ImagineoAI React SDK

The ImagineoAI React SDK (@imagineoai/react) provides React hooks and context for seamless integration with the ImagineoAI API in React applications. It builds on the JavaScript SDK and is designed for modern React apps (React 18+).

Installation

bun add @imagineoai/react @imagineoai/javascript
# or
npm install @imagineoai/react @imagineoai/javascript

Quick Start

import { ImagineoAIProvider } from '@imagineoai/react';

<ImagineoAIProvider getToken={getToken} apiUrl="https://api.imagineo.ai">
<App />
</ImagineoAIProvider>

See the usage guide for more details.


React SDK Reference


Note: The React SDK requires the JavaScript SDK as a peer dependency. Always keep versions in sync.