0% found this document useful (0 votes)
6 views4 pages

Generative AI Report Internship

The document provides an overview of two generative AI applications, ChatGPT and DALL-E, detailing their functionalities and high-level architecture. ChatGPT generates human-like text responses while DALL-E creates images from textual descriptions, with both apps featuring APIs for user interaction. Additionally, the document includes API endpoint documentation for generating text and images, as well as retrieving conversation history and modifying images.

Uploaded by

RIGENIX FF
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views4 pages

Generative AI Report Internship

The document provides an overview of two generative AI applications, ChatGPT and DALL-E, detailing their functionalities and high-level architecture. ChatGPT generates human-like text responses while DALL-E creates images from textual descriptions, with both apps featuring APIs for user interaction. Additionally, the document includes API endpoint documentation for generating text and images, as well as retrieving conversation history and modifying images.

Uploaded by

RIGENIX FF
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Generative AI Apps: Overview, Architecture, and API Documentation

1. Overview of Two Generative AI Apps

App 1: ChatGPT

Functionality: ChatGPT is an advanced conversational AI model that generates human-like text

responses based on user prompts.

It can assist with tasks such as drafting emails, answering questions, generating creative content, or

coding assistance.

Users interact via a text interface, and the app can integrate with various platforms through APIs.

App 2: DALL-E

Functionality: DALL-E is an AI model designed to generate images from textual descriptions. It

supports creative applications

like producing illustrations, conceptual art, and visualizing product designs. Users provide a prompt,

and the app returns images

that match the input description. It also supports variations and editing of images.

2. High-Level Architecture Design

The architecture of these apps generally includes key components such as user interfaces, backend

APIs, model serving

infrastructure, and data storage.

Architecture Diagram (description below for inclusion in the PDF):

1. Frontend/User Interface: Web and mobile interfaces for user interaction.


2. API Gateway: Manages incoming requests and routes them to the appropriate services.

3. Model Serving Layer: Hosts the AI models (e.g., ChatGPT or DALL-E) with optimized

infrastructure for inference.

4. Database: Stores user data, logs, and metadata related to prompts and outputs.

5. Cloud Infrastructure: Ensures scalability and reliability using services like AWS, Azure, or Google

Cloud.

6. Security Layer: Handles authentication, authorization, and encryption of data.

3. API Endpoint Documentation

App 1: ChatGPT

Endpoint 1: Generate Text Response

- URL: /api/v1/generate-text

- Method: POST

- Request Body:

"prompt": "string",

"max_tokens": "integer",

"temperature": "float"

- Response Body:

"response": "string",

"usage": {

"tokens_used": "integer"

}
}

- Functionality: Generates text based on the user prompt.

Endpoint 2: Retrieve Conversation History

- URL: /api/v1/conversations/{conversation_id}

- Method: GET

- Response Body:

"conversation_id": "string",

"messages": [

{"role": "user", "content": "string"},

{"role": "assistant", "content": "string"}

- Functionality: Retrieves the chat history for a given conversation.

App 2: DALL-E

Endpoint 1: Generate Image

- URL: /api/v1/generate-image

- Method: POST

- Request Body:

"prompt": "string",

"size": "string",

"variations": "integer"

}
- Response Body:

"image_url": "string",

"metadata": {

"prompt": "string",

"generated_at": "string"

- Functionality: Generates an image based on the textual description.

Endpoint 2: Modify Image

- URL: /api/v1/modify-image

- Method: POST

- Request Body:

"image_id": "string",

"modifications": {

"crop": "coordinates",

"color_adjust": "string"

- Response Body:

"modified_image_url": "string"

- Functionality: Applies modifications to an existing image.

You might also like