eyevinn-img-alt-gen
- Description:
Enhance image accessibility effortlessly with our Image Description Generator. Utilize OpenAI's prowess to create precise alt tags instantly, making your visuals more inclusive and SEO-friendly!
- Copyright:
- 2025 Eyevinn Technology AB
- See:
-
- Online docs for further information
Methods
(async, static) createEyevinnImgAltGenInstance(context, body) → {EyevinnImgAltGen}
- Description:
Create a new Image Description Generator instance
Example
import { Context } from '@osaas/client-core';
import { createEyevinnImgAltGenInstance } from '@osaas/client-services';
const ctx = new Context();
const body: EyevinnImgAltGenConfig = { name: 'myinstance', ... };
const instance = await createEyevinnImgAltGenInstance(ctx, body);
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
body |
EyevinnImgAltGenConfig | Service instance configuration |
Returns:
- Service instance
- Type
- EyevinnImgAltGen
(async, static) getEyevinnImgAltGenInstance(context, name) → {EyevinnImgAltGen}
- Description:
Get a Image Description Generator instance
Example
import { Context } from '@osaas/client-core';
import { getEyevinnImgAltGenInstance } from '@osaas/client-services';
const ctx = new Context();
const instance = await getEyevinnImgAltGenInstance(ctx, 'myinstance');
console.log(instance.url);
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the generator to be retrieved |
Returns:
- Service instance
- Type
- EyevinnImgAltGen
(async, static) removeEyevinnImgAltGenInstance(context, name)
- Description:
Remove a Image Description Generator instance
Parameters:
Name | Type | Description |
---|---|---|
context |
Context | Open Source Cloud configuration context |
name |
string | Name of the generator to be removed |