Mika Scraper / generateLogo
Function: generateLogo()
generateLogo(
options
):Promise
<FantaxyCompletedResponse
>
Defined in: src/logo-generator/fantaxy.ts:141
The generateLogo
function serves as the primary interface for generating a logo with a single invocation. It consolidates both prompt generation and streaming response into a unified process.
Parameters
options
Type: LogoRequestOptions
The options
parameter specifies the attributes for the logo generation request, including the logo prompt description.
Returns
Type: Promise
<FantaxyCompletedResponse
>
The function returns a promise that resolves to a payload containing the URL of the generated logo asset.
Example
import { generateLogo } from 'mika-scraper';
const options = {
prompt: 'A modern and sleek logo for a tech startup',
size: '1024x1024',
colorScheme: 'blue and green',
};
generateLogo(options)
.then(response => {
console.log('Logo generated at:', response.assetUrl);
})
.catch(error => {
console.error('Error generating logo:', error);
});
Last updated on